[Rt-commit] r5319 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 1 19:34:41 EDT 2006


Author: ruz
Date: Thu Jun  1 19:34:38 2006
New Revision: 5319

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditScrip

Log:
 r3135 at cubic-pc:  cubic | 2006-06-01 05:24:13 +0400
 * clarify submit label


Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditScrip
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditScrip	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditScrip	Thu Jun  1 19:34:38 2006
@@ -91,7 +91,11 @@
 </tr>
 </table>
 </&>
-<& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &>
+<& /Elements/Submit,
+    Caption => loc("Be sure to save your changes"),
+    Label => $SubmitLabel,
+    Reset => 1,
+&>
 
 <br />
 <&| /Widgets/TitleBox, title => loc('User Defined conditions and actions') &>
@@ -131,13 +135,16 @@
 </table>
 </&>
 
-<& /Elements/Submit, Label => loc('Create'), Reset => 1 &>
+<& /Elements/Submit,
+    Caption => loc("Be sure to save your changes"),
+    Label => $SubmitLabel,
+    Reset => 1,
+&>
 
 </form>
 <%init>
 my (@actions);
-
-
+my $SubmitLabel;
 my $scrip = new RT::Scrip($session{'CurrentUser'});
 
 if ( $id eq 'new' ) {
@@ -187,7 +194,9 @@
 
 elsif ($ARGS{'create'}) {
     $id = 'new';
+    $SubmitLabel = loc('Create');
 }
+$SubmitLabel ||= loc('Save');
 
 my $min_lines = 10;
 


More information about the Rt-commit mailing list