Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / ams / templates / show_ticket.tpl
blobf59f0cfa26061c5b171c765e4da347149b39632a
1 {block name=content}
2 <div class="row-fluid sortable ui-sortable">
3     <div class="box col-md-9">
4         <div class="panel panel-default">
5         <div class="panel-heading" data-original-title="">
6             <span class="icon-tag"></span>{$t_title} #{$ticket_tId} 
7         </div>
8         <div class="panel-body">
9             <div class="row-fluid">
10                 <legend>{$title}: {$ticket_title} </legend>
13                 <form id="changeTicket" class="form-vertical" method="post" action="index.php">
14                 <table class="table table-bordered table-condensed ">
15                         <tr>
16                             <td><strong>Original Submitted: </strong>{$ticket_timestamp}</td>
17                             <td><strong>Last Updated: </strong>{$ticket_lastupdate}</td>
18                             <td><strong>Status: </strong>{if $ticket_status neq 3}<span class="label label-success">Open</span>{/if} <span class="label {if $ticket_status eq 0}label-success{else if $ticket_status eq 1}label-warning{else if $ticket_status eq 2}label-important{/if}"><strong>{$ticket_statustext}</strong></span></td>
19                       </tr>
20                         <tr>
21                             <td><strong>Category: </strong>{$ticket_category}</td>
22                             <td><strong>Priority: </strong>{$ticket_prioritytext}</td>
23                             <td><strong>Support Group: </strong>
24                                 <span class="label label-info">
25                                     {if $ticket_forwardedGroupName eq "0"}
26                                         <i>{$public_sgroup}</i>
27                                     {else}
28                                         <a href="index.php?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
29                                     {/if}
30                                 </span>
31                             </td>
32                         </tr>
33                 </table>
34                 <table class="table table-bordered table-condensed ">
35                         <tr>
36                             <td><strong>Filename: </strong></td>
37                             <td><strong>Uploaded: </strong></td>
38                             <td><strong>Filesize: </strong></td>
39                                 <td><strong>Uploaded by: </strong></td>
40                       </tr>
41                         {foreach from=$ticket_attachments item=array}
42                         <tr>
43                             <td><a href="{$FILE_WEB_PATH}{$array['Path']}">{$array['Filename']}</a></td>
44                             <td>{$array['Timestamp']}</td>
45                             <td>{$array['Filesize']}</td>
46                                 <td>{if $permission > 1}
47                                         <a href="{$BASE_WEBPATH}index.php?page=show_user&id={$array['Uploader']}">{$array['Username']}</a>
48                                         {else}
49                                         {$array['Username']}
50                                         {/if}
51                                         </td>
52                     </tr>
53                         {/foreach}
54                 </table>
57                 <table class="table table-bordered" >
58                     <tbody>
59                         {foreach from=$ticket_replies item=reply}
60                         <tr>
61                             <td>
62                                 <p>
63                                     <span class="label label-info"> {$reply.timestamp}</span>
64                                     {if $reply.permission eq '1'}
65                                     <span class="label label-success"><strong><span class="icon-user icon-white"></span>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
66                                     {else if $reply.permission gt '1'}
67                                     <span class="label label-warning"><strong><span class="icon-star icon-white"></span>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
68                                     {/if}
69                                 </p>
70                                 <p><pre{if $reply.permission gt '1'} {if $reply.hidden eq 0} style="background-color:rgb(248, 200, 200);"{else if $reply.hidden eq 1}style="background-color:rgb(207, 254, 255);"{/if}{/if}> {if $reply.hidden eq 1}<i>{/if}{$reply.replyContent}{if $reply.hidden eq 1}</i>{/if}</pre></p>
71                             </td>
72                         </tr>
73                         {/foreach}
75                         {if $ticket_status eq 3}
76                         <tr>
77                             <td>
78                                 <p><pre style="background-color:rgb(255, 230, 153);">Ticket is closed.</pre></p>
79                             </td>
80                         </tr>
81                         {/if}
83                         <tr>
84                             <td>
85                                 <form id="reply" class="form-vertical" method="post" action="index.php">
86                                 {if $ticket_status neq 3}
87                                     <legend>{$t_reply}:</legend>
88                                     <div class="control-group">
89                                         <label class="control-label">{$t_fill}</label>
90                                         <div class="controls">
91                                             <div class="input-prepend">
92                                                 <textarea rows="6" class="span12" id="Content" name="Content"></textarea>
93                                             </div>
94                                         </div>
95                                     </div>
96                                     {if isset($isMod) and $isMod eq "TRUE"}
97                                      <div class="control-group">
98                                         <label class="control-label">Options</label>
99                                         <div class="controls">
100                                             <div class="input-prepend">
101                                         <input type="checkbox" name="hidden">Hide reply for user.
102                                          </div>
103                                         </div>
104                                     </div>
105                                     {/if}
106                                 {/if}
107                                 {if isset($isMod) and $isMod eq "TRUE"}
108                                 <div class="control-group"  style="display: inline-block;">
109                                     <label class="control-label">Change status to</label>
110                                     <div class="controls">
111                                         <select name="ChangeStatus">
112                                             {foreach from=$statusList key=k item=v}
113                                                     <option value="{$k}">{$v}</option>
114                                             {/foreach}
115                                         </select>
116                                     </div>
117                                 </div>
118                                 <div class="control-group"  style="display: inline-block; margin-left:10px;"">
119                                     <label class="control-label">Change priority to</label>
120                                     <div class="controls">
121                                         <select name="ChangePriority">
122                                             {foreach from=$ticket_priorities key=k item=v}
123                                                     <option value="{$k}" {if $k eq $ticket_priority}selected="selected"{/if}>{$v}</option>
124                                             {/foreach}
125                                         </select>
126                                     </div>
127                                 </div>
128                                 {/if}
129                                 <input type="hidden" name="function" value="reply_on_ticket">
130                                 <input type="hidden" name="ticket_id" value="{$ticket_id}">
131                                 
132                 <h3>Upload Attachment</h3>
133                 <input data-no-uniform="true" type="file" name="file_upload" id="file_upload">
134                                 {literal} 
135                                 <script language='JavaScript'>
136                                 $(document).ready( function () {
138                                         $('#file_upload').uploadify({
139                                         'formData' : {'PHPSESSID': '{/literal}{nocache}{$sessionid}{/nocache}{literal}'},
140                                         'auto' : true,
141                                         'multi' : true,
142                                         'method' : 'post',
143                                         'swf': 'misc/uploadify.swf',
144                                         'displayData': 'percentage',
145                                         'uploader': 'func/upload.php?id='+{/literal}{$ticket_id}{literal},
146                                         'removeCompleted' : false
147                                         });
148                                 });
149                                 </script>
150                                 {/literal} 
151                                 <div id="filesUploaded"></div>
152                                 <div class="control-group">
153                                     <label class="control-label"></label>
154                                     <div class="controls">
155                                         <button type="submit" class="btn btn-primary" >{$t_send}</button>
156                                     </div>
157                                 </div>
158                                 </form>
159                             </td>
160                         </tr>
161                     </tbody>
162                 </table>
163             </div>
164         </div>
165                 </div>
166     </div><!--/span-->
170     <div class="box col-md-3">
171         <div class="panel panel-default">
172         <div class="panel-heading" data-original-title="">
173             <span class="icon-th"></span>Actions
174         </div>
175         <div class="panel-body">
176             <div class="row-fluid">
178                 {if isset($isMod) and $isMod eq "TRUE"}
180                  <legend style="margin-bottom:9px;">Ticket Assigning</legend>
181                  {if $ticket_assignedTo eq 0}
182                     <form id="assign_ticket" class="form-vertical" method="post" action="" style="margin:0px 0px 0px;">
183                         <input type="hidden" name="ticket_id" value="{$ticket_tId}">
184                         <input type="hidden" name="action" value="assignTicket">
185                         <button type="submit" class="btn btn-primary" style="margin-bottom:9px;><span class="icon-flag icon-white"></span> Assign Ticket</button>
186                     </form>
187                 {else if $ticket_assignedTo eq $user_id}
188                     <form id="assign_ticket" class="form-vertical" method="post" action="" style="margin:0px 0px 0px;">
189                         <input type="hidden" name="ticket_id" value="{$ticket_tId}">
190                         <input type="hidden" name="action" value="unAssignTicket">
191                         <button type="submit" class="btn btn-warning" style="margin-bottom:9px;><span class="icon-remove icon-white"></span> Remove Assign</button>
192                     </form>
193                 {/if}
195                 {if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
196                 <div class="alert alert-success">
197                         {$success_assigned}
198                 </div>
199                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
200                 <div class="alert alert-success">
201                         {$success_unassigned}
202                 </div>
203                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
204                 <div class="alert alert-error">
205                         {$ticket_not_existing}
206                 </div>
207                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
208                 <div class="alert alert-error">
209                         {$ticket_already_assigned}
210                 </div>
211                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
212                 <div class="alert alert-error">
213                         {$ticket_not_assigned}
214                 </div>
215                 {/if}
217                 <legend style="margin-bottom:9px;">Forward to Group</legend>
218                 <form id="forward" class="form-vertical" method="post" action="" style="margin-bottom:9px;" >
220                 <div class="control-group">
221                     <div class="controls" >
222                         <select name="group">
223                                     <option></option>
224                             {foreach from=$sGroups key=k item=v}
225                                     <option value="{$k}">{$v}</option>
226                             {/foreach}
227                         </select>
228                     </div>
229                 </div>
230                 <input type="hidden" name="ticket_id" value="{$ticket_tId}">
231                 <input type="hidden" name="action" value="forward">
232                 <div class="control-group">
233                     <div class="controls">
234                         <button type="submit" class="btn btn-primary" >Forward</button>
235                     </div>
236                 </div>
237                 </form>
238                 {if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"}
239                 <div class="alert alert-error">
240                         {$invalid_sgroup}
241                 </div>
242                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
243                 <div class="alert alert-error">
244                         {$ticket_not_existing}
245                 </div>
246                 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"}
247                 <div class="alert alert-success">
248                         {$success_forwarded}
249                 </div>
250                 {/if}
251                 {/if}
252                 <legend style="margin-bottom:9px;">Other actions</legend>
253                 <div class="btn-group">
254                     <button class="btn btn-primary btn-large dropdown-toggle" data-toggle="dropdown">Actions<span class="caret"></span></button>
255                     <ul class="dropdown-menu">
256                         <li class="divider"></li>
257                         {if isset($isMod) and $isMod eq "TRUE"}<li><a href="index.php?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></li>{/if}
258                         <li><a href="index.php?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></li>
259                         {if $hasInfo}<li><a href="index.php?page=show_ticket_info&id={$ticket_tId}">Show ticket Info</a></li>{/if}
260                         <li class="divider"></li>
261                     </ul>
262                 </div>
263             </div>
264         </div>
265                 </div>
266     </div>
267 </div><!--/row-->
268 {/block}