From 99a50c00be8ec02f0b9136a6dccbdc1694717f56 Mon Sep 17 00:00:00 2001 From: Quitta Date: Thu, 1 Aug 2013 23:10:26 +0200 Subject: [PATCH] basis for show ticket --- .../ams_lib/ingame_templates/createticket.tpl | 2 +- .../ams_lib/ingame_templates/show_ticket.tpl | 338 ++++++++++++++++++ 2 files changed, 339 insertions(+), 1 deletion(-) create mode 100644 code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_ticket.tpl diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/createticket.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/createticket.tpl index 43297bd8c..f1e844dab 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/createticket.tpl +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/createticket.tpl @@ -52,7 +52,7 @@ Description: - + diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_ticket.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_ticket.tpl new file mode 100644 index 000000000..8edf7c4fe --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_ticket.tpl @@ -0,0 +1,338 @@ +{block name=content} + + + + + + + + +
+ + + + +
+ + + {if isset($isMod) and $isMod eq "TRUE"}{/if} + + +
Show Ticket LogSend Other Ticket
+
+
+ + + + + + + + + + + + +

[{$t_title}-#{$ticket_tId}] {$ticket_title}

+ + + + + + + + + + + + +
+ + +
+
+ + +
+ + +
+ + +
+ + +
+ +
+ + + + + + + + + + + + + + + + + +
Submitted: {$ticket_timestamp}Last Updated: {$ticket_lastupdate}Status: {if $ticket_status neq 3}Open{/if} {$ticket_statustext}
Category: {$ticket_category}Priority {$ticket_prioritytext}Support Group: + + {if $ticket_forwardedGroupName eq "0"} + {$public_sgroup} + {else} + {$ticket_forwardedGroupName} + {/if} + +
Assigned To: {if $ticket_assignedTo neq ""} {$ticket_assignedToText} {else} {$not_assigned} {/if}
+
+
+
+
+
+
+ + + + + +
+
+
+

{$t_title} #{$ticket_tId}

+
+ + +
+
+
+
+ {$title}: {$ticket_title} + + +
+ + + + + + + + + + + + + + + + +
Original Submitted: {$ticket_timestamp}Last Updated: {$ticket_lastupdate}Status: {if $ticket_status neq 3}Open{/if} {$ticket_statustext}
Category: {$ticket_category}Priority: {$ticket_prioritytext}Support Group: + + {if $ticket_forwardedGroupName eq "0"} + {$public_sgroup} + {else} + {$ticket_forwardedGroupName} + {/if} + +
Assigned To: {if $ticket_assignedTo neq ""} {$ticket_assignedToText} {else} {$not_assigned} {/if}
+ + + + + {foreach from=$ticket_replies item=reply} + + + + {/foreach} + + {if $ticket_status eq 3} + + + + {/if} + + + + + +
+

+ {$reply.timestamp} + {if $reply.permission eq '1'} + {if isset($isMod) and $isMod eq "TRUE"} {$reply.author}{else} {$reply.author} {/if} + {else if $reply.permission gt '1'} + {if isset($isMod) and $isMod eq "TRUE"} {$reply.author}{else} {$reply.author} {/if} + {/if} +

+

{if $reply.hidden eq 1}{/if}{$reply.replyContent}{if $reply.hidden eq 1}{/if}

+
+

Ticket is closed.

+
+ + {if $ticket_status neq 3} + {$t_reply}: +
+ +
+
+ +
+
+
+ {if isset($isMod) and $isMod eq "TRUE"} +
+ +
+
+ Hide reply for user. +
+
+
+ {/if} + {/if} + {if isset($isMod) and $isMod eq "TRUE"} +
+ +
+ +
+
+
+ +
+ +
+
+ {/if} + + +
+ +
+ +
+
+ +
+
+
+
+ + + +
+
+

Actions

+
+ + +
+
+
+
+ + {if isset($isMod) and $isMod eq "TRUE"} + + Ticket Assigning + {if $ticket_assignedTo eq 0} +
+ + + +
+ {else if $ticket_assignedTo eq $user_id} +
+ + + +
+ {/if} + + {if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"} +
+ {$success_assigned} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"} +
+ {$success_unassigned} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"} +
+ {$ticket_not_existing} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"} +
+ {$ticket_already_assigned} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"} +
+ {$ticket_not_assigned} +
+ {/if} + + Forward to Group +
+ +
+
+ +
+
+ + +
+
+ +
+
+
+ {if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"} +
+ {$invalid_sgroup} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"} +
+ {$ticket_not_existing} +
+ {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"} +
+ {$success_forwarded} +
+ {/if} + {/if} + Other actions +
+ + +
+
+
+
+
+{/block} +