[Rt-commit] r9610 - in rt/branches/3.6-RELEASE/html/Ticket: Elements
ruz at bestpractical.com
ruz at bestpractical.com
Tue Nov 6 16:30:42 EST 2007
Author: ruz
Date: Tue Nov 6 16:30:42 2007
New Revision: 9610
Added:
rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowQueue
Modified:
rt/branches/3.6-RELEASE/html/Ticket/Create.html
rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowBasics
Log:
* add Ticket/Elements/ShowQueue and use it on create and in ShowBasics,
tiny comp for overriding in extensions
Modified: rt/branches/3.6-RELEASE/html/Ticket/Create.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/Ticket/Create.html (original)
+++ rt/branches/3.6-RELEASE/html/Ticket/Create.html Tue Nov 6 16:30:42 2007
@@ -62,8 +62,8 @@
<&| /Widgets/TitleBox, title => loc("Create a new ticket") &>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td class="label"><&|/l&>Queue</&>:</td>
-<td class="value"><% $QueueObj->Name %>
-<input type="hidden" class="hidden" name="Queue" value="<%$QueueObj->Name%>" />
+<td class="value"><& Elements/ShowQueue, QueueObj => $QueueObj &>
+<input type="hidden" class="hidden" name="Queue" value="<% $QueueObj->Name %>" />
</td>
<td class="label"><&|/l&>Status</&>:
</td>
Modified: rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowBasics
==============================================================================
--- rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowBasics (original)
+++ rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowBasics Tue Nov 6 16:30:42 2007
@@ -76,7 +76,7 @@
</tr>
<tr>
<td class="label queue"><&|/l&>Queue</&>:</td>
- <td class="value queue"><%$Ticket->QueueObj->Name%></td>
+ <td class="value queue"><& ShowQueue, QueueObj => $Ticket->QueueObj &></td>
</tr>
<& /Elements/Callback, _CallbackName => 'EndOfList', TicketObj => $Ticket, %ARGS &>
</table>
Added: rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowQueue
==============================================================================
--- (empty file)
+++ rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowQueue Tue Nov 6 16:30:42 2007
@@ -0,0 +1,9 @@
+<% $QueueObj->Name %>
+<%ARGS>
+$QueueObj
+</%ARGS>
+<%INIT>
+my $value = $QueueObj->Name;
+$value = '#'. $QueueObj->id
+ unless defined $value && length $value;
+</%INIT>
More information about the Rt-commit
mailing list