import rt 2.0.14
[freeside.git] / rt / webrt / Ticket / Elements / ShowBasics
diff --git a/rt/webrt/Ticket/Elements/ShowBasics b/rt/webrt/Ticket/Elements/ShowBasics
new file mode 100755 (executable)
index 0000000..97c84c9
--- /dev/null
@@ -0,0 +1,29 @@
+ <TABLE WIDTH="100%">
+      <TR>
+       <TD VALIGN=TOP WIDTH="20%">
+         <& /Elements/ShadedBox, title => 'Id' , content => $Ticket->Id &>
+       </TD>
+       <TD VALIGN=TOP WIDTH="20%"> <& /Elements/ShadedBox, title => 'Status' , content => $Ticket->Status &>
+       </TD>
+       <TD VALIGN=TOP WIDTH="20%">
+        <& /Elements/ShadedBox, title => 'Worked' , content => $TimeWorked ." min" &>
+       </TD>
+       <TD VALIGN=TOP WIDTH="20%">
+         <& /Elements/ShadedBox, title => 'Priority', content=> $Ticket->Priority."/".$Ticket->FinalPriority &>
+       </TD>
+       <TD VALIGN=TOP WIDTH="20%">
+         <& /Elements/ShadedBox, title => 'Queue', content=> $Ticket->QueueObj->Name &>
+       </TD>   
+
+
+      </TR>
+    </TABLE>
+<%INIT>
+my $TimeWorked = $Ticket->TimeWorked;
+if ($Ticket->TimeLeft > 0 ) {
+        $TimeWorked = $Ticket->TimeWorked."/".$Ticket->TimeLeft;
+}
+</%INIT>
+<%ARGS>
+$Ticket => undef
+</%ARGS>