diff options
| author | levinse <levinse> | 2010-12-17 01:16:00 +0000 |
|---|---|---|
| committer | levinse <levinse> | 2010-12-17 01:16:00 +0000 |
| commit | 0a9c2506f72162e9fc99679a35a6540b27a22848 (patch) | |
| tree | b65354c18a350814780193cb13617bdba8350e9a /fs_selfservice/FS-SelfService/cgi/tktview.html | |
| parent | 95c2cfba9666f31c5444f8f6c207e7a728a5e96f (diff) | |
self-service improvements, RT10883
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/tktview.html')
| -rw-r--r-- | fs_selfservice/FS-SelfService/cgi/tktview.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/tktview.html b/fs_selfservice/FS-SelfService/cgi/tktview.html new file mode 100644 index 000000000..6f540bcf4 --- /dev/null +++ b/fs_selfservice/FS-SelfService/cgi/tktview.html @@ -0,0 +1,31 @@ +<%= $url = "$selfurl?session=$session_id;action="; ''; %> +<%= include('header', "View ticket #$ticket_id") %> + +<%= +if($error) { + $OUT .= qq! <div style="font-weight: bold; color: red; font-size: 110%">Error: $error</div> !; +} +elsif(@transactions) { + $OUT .= qq! <TABLE border="1">!; + foreach my $txn ( @transactions ) { + next if $txn->{content} eq 'This transaction appears to have no content'; + $OUT .= "<TR><TD><B>$txn->{created} $txn->{description}</B>"; + $OUT .= "<PRE>$txn->{content}</PRE></TD></TR>"; + } + $OUT .= "</TABLE>"; +} +else { + $OUT .= "No transactions on this ticket"; +} +%> +<BR><BR><BR> +<FORM ACTION="<%=$selfurl%>" METHOD=POST> + <input type="hidden" name="session" value="<%=$session_id%>"> + <input type="hidden" name="ticket_id" value="<%=$ticket_id%>"> + <input type="hidden" name="action" value="tktview"> + Add reply to ticket: + <BR><textarea name="reply" cols="60" rows="10"></textarea> + <BR><input type="submit" value="Reply"> +</form> + +<%= include('footer') %> |
