<%args>
$TicketObj
</%args>
<%init>
# The self service interface doesn't support updating time fields.
return unless $session{CurrentUser}->Privileged
          and $session{CurrentUser}->HasRight( Object => $TicketObj, Right => "ModifyTicket" );
</%init>
<tr>
  <td class="label"><&|/l&>Add to time worked:</&></td>
  <td class="value">
    <form action="<% RT->Config->Get("WebPath") %>/Ticket/Display.html" method="POST">
      <input type="hidden" name="id" value="<% $TicketObj->id %>">
      <& /Elements/EditTimeValue,
            Name    => "UpdateTimeWorked",
            Default => $ARGS{UpdateTimeWorked} || '',
            InUnits => $ARGS{'UpdateTimeWorked-TimeUnits'} || 'minutes',
            &>
      <input type="submit" value="Add time">
    </form>
  </td>
</tr>
