blob: 17f1618a3f3bc7ad2e0a25edf22946f982b7fde9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<& /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>
|