[Rt-commit] [svn] r1638 - in RT-JustDoSomething: . html
html/Callbacks/RT-Triage html/Callbacks/RT-Triage/Search
html/Callbacks/RT-Triage/Search/Results.html
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Fri Oct 8 16:37:36 EDT 2004
Author: jesse
Date: Fri Oct 8 16:37:35 2004
New Revision: 1638
Added:
RT-JustDoSomething/html/Callbacks/RT-Triage/
RT-JustDoSomething/html/Callbacks/RT-Triage/Search/
RT-JustDoSomething/html/Callbacks/RT-Triage/Search/Results.html/
RT-JustDoSomething/html/Callbacks/RT-Triage/Search/Results.html/SearchActions
RT-JustDoSomething/html/t2
Removed:
RT-JustDoSomething/html/Triage
Modified:
RT-JustDoSomething/ (props changed)
Log:
Added: RT-JustDoSomething/html/Callbacks/RT-Triage/Search/Results.html/SearchActions
==============================================================================
--- (empty file)
+++ RT-JustDoSomething/html/Callbacks/RT-Triage/Search/Results.html/SearchActions Fri Oct 8 16:37:35 2004
@@ -0,0 +1,5 @@
+<%args>
+$QueryString => undef
+</%args>
+<a href="<%$RT::WebPath%>/Triage/Entry.html<%$QueryString%>"><&|/l&>Triage</&></a>
+
Added: RT-JustDoSomething/html/t2
==============================================================================
--- (empty file)
+++ RT-JustDoSomething/html/t2 Fri Oct 8 16:37:35 2004
@@ -0,0 +1,154 @@
+<%ARGS>
+$id => undef
+$DoUpdate => undef
+</%ARGS>
+<%init>
+my $ticket = LoadTicket($id);
+my $update_ticket = LoadTicket($DoUpdate);
+my @messages;
+if ($DoUpdate) {
+
+ if ($ARGS{'DelegateTo'}) {
+ my ($status, $msg) = $ticket->SetOwner($ARGS{'DelegateTo'});
+ push @messages, $msg;
+
+
+ }
+ if ($ARGS{'Comments'} ) {
+ my ($status, $msg) = $ticket->Comment ( Content => $ARGS{'Comments'});
+ push @messages, $msg;
+ }
+ if ($ARGS{'Reply'} ) {
+ my ($status, $msg) = $ticket->Correspond ( Content => $ARGS{'Reply'});
+ push @messages, $msg;
+ }
+ if ($ARGS{'Kill'}) {
+ my ($status, $msg) = $ticket->SetStatus('rejected');
+ push @messages, $msg;
+
+ }
+
+ if ($ARGS{'Done'}) {
+ my ($status, $msg) = $ticket->SetStatus('resolved');
+ push @messages, $msg;
+
+ }
+
+
+}
+
+
+
+ if ($item_map->{$Ticket->Id}->{prev}) {
+ if ($item_map->{$Ticket->Id}->{next}) {
+
+</%INIT>
+
+
+<%ARGS>
+$Ticket => undef
+$subtabs => undef
+$current_tab => undef
+$current_subtab => undef
+$Title => undef
+</%ARGS>
+</%init>
+<& /Elements/Header&>
+<h1><%$ticket->id%>: <%$ticket->Subject%></h1>
+<i>(Next up: #<% $session{'tickets'}->ItemMap->{$id}->{'next'}->id %>:
+ <% $session{'tickets'}->ItemMap->{$id}->{'next'}->Subject %>)</i>
+
+<& /Elements/ListActions, actions => \@messages &>
+
+<form method="post" action="Triage">
+<input
+ type="hidden"
+ name="id"
+ value="<% $session{'tickets'}->ItemMap->{$id}->{'next'}->id %>"
+>
+<input type="hidden" name="DoUpdate" value="<%$id%>">
+
+
+
+<table width="100%">
+<tr>
+<td>
+<div align="left">
+ <IFRAME src="History?id=<%$ticket->id%>" width="70%" height="250"
+ scrolling="auto" frameborder="1">
+ [Your user agent does not support iframes or is currently configured
+ not to display frames. However, you may visit
+ <A href="History?id=<%$ticket->id%>" target="_new">the history.</A>]
+ </IFRAME>
+</div>
+<br>
+ <div class="row">
+<div id="CommentsBlock">
+ <label name="Comments">Private comments</label><br>
+ <textarea name="Comments" rows=5 cols=60></textarea>
+</div>
+</div> <div class="row">
+<div id="ReplyBlock">
+ <label name="Reply">Reply</label><br>
+ <textarea name="Reply" rows=5 cols=60></textarea>
+ <br>
+ <label name="Template">Template:</label>
+ <select name="Template"><option value="No freebies">No Freebies</option></select>
+ </div>
+</div>
+</td>
+<td valign="top">
+<table height="100%">
+<tr height="25%" bgcolor="#cccccc"><td>
+ <div class="row">
+
+<div id="Defer">
+ Defer until<br>
+
+ <input name="Defer1" type="submit" value="Tomorrow"><br>
+ <input name="Defer7" type="submit" value="Next week"><br>
+ <input name="Defer30" type="submit" value="Next month"><br>
+</div>
+</div>
+
+</td>
+</tr>
+<tr height="25%" bgcolor="#cccccc">
+<td>
+<div class="row">
+<div id="Delegate">
+ Delegate it to <& /Elements/SelectOwner, Name => 'DelegateTo' &>
+</div>
+</div>
+</td>
+</tr>
+<tr height="25%" bgcolor="#cccccc"><td>
+
+ <div class="row">
+<div id="Done">
+ <input type="submit" name="Done" value="Done">
+</div>
+</div>
+
+</td>
+</tr>
+<tr height="25%" bgcolor="#cccccc">
+<td>
+
+ <div class="row">
+<div id="Kill">
+<& /KeyBindings/Elements/AddKeyBinding,
+ key =>'K',
+ action => 'click',
+ target => 'Kill'
+&>
+
+ <input type="submit" name="Kill" value="Kill">
+</div>
+</div>
+</td>
+</tr>
+</table>
+</td> </tr>
+</table>
+</form>
More information about the Rt-commit
mailing list