[Rt-commit] r19695 - in rt/3.8/trunk/share/html: Admin/Elements Admin/Global Admin/Groups Admin/Queues Admin/Users
elacour at bestpractical.com
elacour at bestpractical.com
Fri May 15 16:31:15 EDT 2009
Author: elacour
Date: Fri May 15 16:31:14 2009
New Revision: 19695
Modified:
rt/3.8/trunk/share/html/Admin/Elements/EditScrip
rt/3.8/trunk/share/html/Admin/Global/Template.html
rt/3.8/trunk/share/html/Admin/Groups/Modify.html
rt/3.8/trunk/share/html/Admin/Queues/Modify.html
rt/3.8/trunk/share/html/Admin/Users/Modify.html
rt/3.8/trunk/share/html/Dashboards/Modify.html
Log:
Be more consistent in Create/Save Changes buttons across objects.
Modified: rt/3.8/trunk/share/html/Admin/Elements/EditScrip
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Elements/EditScrip (original)
+++ rt/3.8/trunk/share/html/Admin/Elements/EditScrip Fri May 15 16:31:14 2009
@@ -89,7 +89,6 @@
<& /Elements/Submit,
Label => $SubmitLabel,
- Caption => loc("Be sure to save your changes"),
Reset => 1,
&><br />
@@ -124,7 +123,6 @@
</&>
<& /Elements/Submit,
- Caption => loc("Be sure to save your changes"),
Label => $SubmitLabel,
Reset => 1,
&>
@@ -140,7 +138,7 @@
unless ( $id = $scrip->id ) {
push @actions, loc("Couldn't load scrip #[_1]", $id);
}
- $SubmitLabel = loc('Update');
+ $SubmitLabel = loc('Save Changes');
}
unless ( $id ) {
Modified: rt/3.8/trunk/share/html/Admin/Global/Template.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Global/Template.html (original)
+++ rt/3.8/trunk/share/html/Admin/Global/Template.html Fri May 15 16:31:14 2009
@@ -99,7 +99,7 @@
$TemplateObj->Load($Template) || Abort(loc('No Template'));
}
$title = loc('Modify template [_1]', loc($TemplateObj->Name()));
- $SubmitLabel = loc('Update');
+ $SubmitLabel = loc('Save Changes');
}
if ($TemplateObj->Id()) {
Modified: rt/3.8/trunk/share/html/Admin/Groups/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Groups/Modify.html (original)
+++ rt/3.8/trunk/share/html/Admin/Groups/Modify.html Fri May 15 16:31:14 2009
@@ -91,7 +91,11 @@
</tr>
% $m->callback( %ARGS, GroupObj => $Group, results => \@results );
</table>
+% if ( $Create ) {
+<& /Elements/Submit, Label => loc('Create'), Reset => 1 &>
+% } else {
<& /Elements/Submit, Label => loc('Save Changes'), Reset => 1 &>
+% }
</form>
<%INIT>
Modified: rt/3.8/trunk/share/html/Admin/Queues/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Queues/Modify.html (original)
+++ rt/3.8/trunk/share/html/Admin/Queues/Modify.html Fri May 15 16:31:14 2009
@@ -130,7 +130,11 @@
% }
</table>
+% if ( $Create ) {
+<& /Elements/Submit, Label => loc('Create') &>
+% } else {
<& /Elements/Submit, Label => loc('Save Changes') &>
+% }
</form>
Modified: rt/3.8/trunk/share/html/Admin/Users/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Users/Modify.html (original)
+++ rt/3.8/trunk/share/html/Admin/Users/Modify.html Fri May 15 16:31:14 2009
@@ -240,7 +240,11 @@
</tr>
</table>
+% if ( $Create ) {
+<& /Elements/Submit, Label => loc('Create') &>
+% } else {
<& /Elements/Submit, Label => loc('Save Changes') &>
+% }
</form>
<%INIT>
Modified: rt/3.8/trunk/share/html/Dashboards/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Modify.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Modify.html Fri May 15 16:31:14 2009
@@ -72,7 +72,11 @@
<& /Dashboards/Elements/SelectPrivacy, Name => "Privacy", Objects => \@privacies, Default => $Dashboard->Privacy &>
</td></tr>
</table>
+% if ( $Create ) {
+<& /Elements/Submit, Name => 'Save', Label => loc('Create') &>
+% } else {
<& /Elements/Submit, Name => 'Save', Label => loc('Save Changes') &>
+% }
% if ($Dashboard->Id && $can_delete) {
<& /Elements/Submit, Name => 'Delete', Label => loc('Delete') &>
% }
More information about the Rt-commit
mailing list