<& /Elements/Header, Title=> $title &> <& /Ticket/Elements/Tabs, Ticket => $Ticket &> <& /Elements/TitleBoxStart, title => "Update ticket" &>
Ticket watchers Requestor: <% $Ticket->RequestorsAsString %>
  Cc: <% $Ticket->CcAsString %>
  AdminCc: <% $Ticket->AdminCcAsString %>

Status: <& /Elements/SelectStatus, Name=>"Status", Default => $DefaultStatus &> Owner: <& /Elements/SelectOwner, Name=>"Owner", Default => $Ticket->OwnerObj->Id(), QueueObj => $Ticket->QueueObj, TicketObj => $Ticket &> Worked: minutes
Update Type:
Subject:
Cc:
(Sends a carbon-copy of this update to a comma-delimited list of email addresses. Does not change who will receive future updates.)
Bcc:
(Sends a blind carbon-copy of this update to a comma-delimited list of email addresses. Does not change who will receive future updates.)
Attach:
<& /Elements/MessageBox, Name=>"UpdateContent", QuoteTransaction=>$ARGS{QuoteTransaction} &>
<& /Elements/TitleBoxEnd &> <& /Elements/Submit &>
<%INIT> my $CanRespond = 0; my $CanComment = 0; my $title; my $Ticket = LoadTicket($id); if ($DefaultStatus eq 'resolved') { $title = "Resolve"; } else { $title = "Update"; } $title .= " ticket #" . $Ticket->id . " (" .$Ticket->Subject.")"; # Things needed in the template - we'll do the processing here, just # for the convinience: my $CommentDefault=$Action eq "Comment" ? "SELECTED" : ""; my $ResponseDefault=$Action eq "Respond" ? "SELECTED" : ""; $DefaultStatus = $Ticket->Status() unless ($DefaultStatus); $CanRespond = 1 if ( $Ticket->CurrentUserHasRight('ReplyToTicket') or $Ticket->CurrentUserHasRight('ModifyTicket') ); $CanComment = 1 if ( $Ticket->CurrentUserHasRight('CommentOnTicket') or $Ticket->CurrentUserHasRight('ModifyTicket') ); <%ARGS> $id => undef $Action => undef $DefaultStatus => undef