[freeside-commits] freeside/rt/share/html/Ticket Update.html, 1.2, 1.2.2.1
Mark Wells
mark at wavetail.420.am
Tue Aug 23 14:46:36 PDT 2011
Update of /home/cvs/cvsroot/freeside/rt/share/html/Ticket
In directory wavetail.420.am:/tmp/cvs-serv19603/rt/share/html/Ticket
Modified Files:
Tag: FREESIDE_2_3_BRANCH
Update.html
Log Message:
RT future ticket resolve, #13853
Index: Update.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/Ticket/Update.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -w -d -r1.2 -r1.2.2.1
--- Update.html 17 Feb 2011 03:47:50 -0000 1.2
+++ Update.html 23 Aug 2011 21:46:34 -0000 1.2.2.1
@@ -67,7 +67,29 @@
<tr><td valign="baseline" class="label"><&|/l&>Status</&>:</td>
<td valign="baseline">
-<& /Elements/SelectStatus, Name=>"Status", DefaultLabel => loc("[_1] (Unchanged)", loc($TicketObj->Status)), Default => $ARGS{'Status'} || ($TicketObj->Status eq $DefaultStatus ? undef : $DefaultStatus)&>
+<script type="text/javascript">
+function changeStatus() {
+ var Status_select = document.getElementById('Status');
+ var x = Status_select.options[Status_select.selectedIndex].value;
+ var text = document.getElementById('WillResolve_Date');
+ var button = document.getElementById('WillResolve_Date_date_button');
+ if (x == 'resolved' || x == 'rejected' || x == 'deleted') {
+ text.disabled = true;
+ button.style.display = 'none';
+ }
+ else {
+ text.disabled = false;
+ button.style.display = 'inline';
+ }
+}
+</script>
+<& /Elements/SelectStatus,
+ Name=>"Status",
+ DefaultLabel => loc("[_1] (Unchanged)", loc($TicketObj->Status)),
+ Default => $ARGS{'Status'}
+ || ($TicketObj->Status eq $DefaultStatus ? undef : $DefaultStatus,
+ onchange => 'changeStatus()'
+)&>
<span class="label"><&|/l&>Owner</&>:</span>
<& /Elements/SelectOwner,
Name => "Owner",
@@ -76,6 +98,18 @@
DefaultLabel => loc("[_1] (Unchanged)", $m->scomp('/Elements/ShowUser', User => $TicketObj->OwnerObj)),
Default => $ARGS{'Owner'}
&>
+<span class="label"><&|/l&>Close this Ticket on</&>:</span>
+<& /Elements/SelectDate,
+ menu_prefix => 'WillResolve',
+ current => 0,
+ ShowTime => 0,
+&>
+% if ( $TicketObj->WillResolve ) {
+<span class="label"> (<% $TicketObj->WillResolveObj->AsString %>)</span>
+% }
+<script type="text/javascript">
+changeStatus();
+</script>
</td>
<td rowspan=4 valign="top">
<table style="float:right;">
More information about the freeside-commits
mailing list