[Rt-commit] r5321 - in rtir/branches/1.9-EXPERIMENTAL: html/RTIR html/RTIR/Incident

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 1 19:35:31 EDT 2006


Author: ruz
Date: Thu Jun  1 19:35:30 2006
New Revision: 5321

Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Create.html
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Incident/Create.html

Log:
 r1440 at cubic-pc:  cubic | 2006-05-31 03:05:13 +0400
 * on split display 'Split' on submit button


Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Create.html	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Create.html	Thu Jun  1 19:35:30 2006
@@ -292,11 +292,7 @@
 </table>
 <& /Widgets/TitleBoxEnd &>
 
-% if ($Type eq 'Investigation') {
-<& /Elements/Submit, Name => "Create", Label => loc("Launch")&>
-% } else {
-<& /Elements/Submit, Name => "Create", Label => loc("Create")&>
-% }
+<& /Elements/Submit, Name => "Create", Label => $SubmitCaption &>
 </form>
 
 <%INIT>
@@ -377,14 +373,17 @@
     unshift @results, loc("Creation failed:");
 }
 
-my $Title;
+my ($Title, $SubmitCaption);
 if ( $Split ) {
     $Title = loc("Split [_1] #[_2]: [_3]", $name, $TicketObj->id, $TicketObj->Subject);
+    $SubmitCaption = loc("Split");
 } else {
     if ( $Type eq 'Investigation' ) {
         $Title = loc("Launch a new [_1]", $name);
+        $SubmitCaption = loc("Launch");
     } else {
         $Title = loc("Create a new [_1]", $name);
+        $SubmitCaption = loc("Create");
     }
 }
 

Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Incident/Create.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Incident/Create.html	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Incident/Create.html	Thu Jun  1 19:35:30 2006
@@ -162,7 +162,11 @@
 
 </&>
 
+% if ( $Split ) {
+<& /Elements/Submit, Name => 'CreateIncident', Label => loc("Split") &>
+% } else {
 <& /Elements/Submit, Name => 'CreateIncident', Label => loc("Create") &>
+% }
 
 <&| /Widgets/TitleBox,
     title => loc("Run Investigation"),


More information about the Rt-commit mailing list