<& /SelfService/Elements/Header, Title => 'Update ticket #'.$Ticket->id &>


<FORM ACTION="Display.html" METHOD=POST ENCTYPE="multipart/form-data">

Status:
<& /Elements/SelectStatus, Name=>"Status", Default => $DefaultStatus &> 
<input type=hidden name="UpdateType" value="response">

Subject: <input name="UpdateSubject" size=60 value="Re: <% $Ticket->Subject %>"> <br>
Attach: <input name="UpdateAttachment" type=file><br>
<& /Elements/MessageBox, Name=>"UpdateContent", QuoteTransaction=>$ARGS{QuoteTransaction} &>
		<INPUT TYPE=HIDDEN NAME=id VALUE="<%$Ticket->Id%>"><br>


<& /Elements/Submit &>
  </FORM>



<%INIT>

my $Ticket = LoadTicket($id);

my $title = "Update ticket #" . $Ticket->id;

$DefaultStatus = $Ticket->Status() unless ($DefaultStatus);


Abort("No permission to view update ticket") 
	unless ( $Ticket->CurrentUserHasRight('ReplyToTicket') or
                     $Ticket->CurrentUserHasRight('ModifyTicket') ); 

</%INIT>

<%ARGS>
$id => undef
$Action => undef
$DefaultStatus => undef
</%ARGS>
