Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / fs_selfservice / FS-SelfService / cgi / tktview.html
1 <%= include('header', "View ticket #$ticket_id") %>
2
3 <%=
4 if($error) {
5     $OUT .= qq! <div style="font-weight: bold; color: red; font-size: 110%">Error: $error</div> !;
6 }
7 elsif(@transactions) {
8     $OUT .= qq! <TABLE border="1">!;
9     foreach my $txn ( @transactions ) {
10         next if $txn->{content} eq 'This transaction appears to have no content';
11         $OUT .= "<TR><TD><B>$txn->{created} &nbsp; $txn->{description}</B>";
12         $OUT .= "<PRE>$txn->{content}</PRE></TD></TR>";
13     }
14     $OUT .= "</TABLE>";
15 }
16 else {
17     $OUT .= "No transactions on this ticket";
18 }
19 %>
20 <BR><BR><BR>
21 <FORM ACTION="<%=$selfurl%>" METHOD=POST>
22     <input type="hidden" name="ticket_id" value="<%=$ticket_id%>">
23 <%= if ( $edit_ticket_subject ) { $OUT .= '
24     Subject:<BR><input type="text" name="subject" value="' . 
25     $ticket_fields{'subject'} . '" style="width:440px">
26     <BR><BR>';
27 }
28 %>
29     <input type="hidden" name="action" value="tktview">
30     Add reply to ticket:
31     <BR>
32     <textarea name="reply" cols="60" rows="10" style="width:440px"></textarea>
33     <BR><input type="submit" value="Reply">
34 </form> 
35
36 <%= include('footer') %>