Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / ams / templates / show_user.tpl
bloba4580c70ee2f0b9cdcf10bcf8fbb4720df2d0752
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-user"></span> Profile of {$target_name}
7         </div>
8         <div class="panel-body">
9             <div class="row-fluid">
10                 <legend>Info</legend>
11                 <table class="table table-striped" >
12                     <tbody>
13                         <tr >
14                             <td><strong>Email:</strong></td>
15                             <td>{$mail}</td>
16                         </tr>
18                         <tr >
19                             <td><strong>Role:</strong></td>
20                             <td>
21                             {if $userPermission eq 1}<span class="label label-success">User</span>{/if}
22                             {if $userPermission eq 2}<span class="label label-warning">Moderator</span>{/if}
23                             {if $userPermission eq 3}<span class="label label-important">Admin</span>{/if}
24                             </td>
25                         </tr>
26                         {if $firstName neq ""}
27                         <tr>
28                             <td><strong>Firstname:</strong></td>
29                             <td>{$firstName}</td>
30                         </tr>
31                         {/if}
32                         {if $lastName neq ""}
33                         <tr>
34                             <td><strong>LastName:</strong></td>
35                             <td>{$lastName}</td>
36                         </tr>
37                         {/if}
38                         {if $country neq ""}
39                         <tr>
40                             <td><strong>Country:</strong></td>
41                             <td>{$country}</td>
42                         </tr>
43                         {/if}
44                         {if $gender neq 0}
45                         <tr>
46                             <td><strong>Gender:</strong></td>
47                             {if $gender eq 1}
48                             <td><strong>♂</strong></td>
49                             {else if $gender eq 2}
50                             <td><strong>♀</strong></td>
51                             {/if}
52                         </tr>
53                         {/if}
54                     </tbody>
55                 </table>
56             </div>
57         </div>
58                 </div>
59     </div><!--/span-->
61     <div class="box col-md-3">
62         <div class="panel panel-default">
63         <div class="panel-heading" data-original-title="">
64             <span class="icon-th"></span>Actions
65         </div>
66         <div class="panel-body">
67             <div class="row-fluid">
68                 <div class="btn-group">
69                 <button class="btn btn-primary btn-large dropdown-toggle" data-toggle="dropdown">Actions<span class="caret"></span></button>
70                 <ul class="dropdown-menu">
71                     <li class="divider"></li>
72                     <li><a href="index.php?page=settings&id={$target_id}">Edit User</a></li>
73                     <li><a href="index.php?page=createticket&user_id={$target_id}">Send Ticket</a></li>
74                     <li class="divider"></li>
75                     {if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
76                         {if $userPermission eq 1}
77                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=2">Make Moderator</a></li>
78                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=3">Make Admin</a></li>
79                         {else if $userPermission eq 2 }
80                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=1">Demote to User</a></li>
81                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=3">Make Admin</a></li>
82                         {else if $userPermission eq 3 }
83                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=1">Demote to User</a></li>
84                         <li><a href="index.php?page=change_permission&user_id={$target_id}&value=2">Demote to Moderator</a></li>
85                         {/if}
86                         <li class="divider"></li>
87                     {/if}
89                 </ul>
90               </div>
91             </div>
92         </div>
93                 </div>
94     </div><!--/span-->
95 </div><!--/row-->
97 <div class="row-fluid sortable ui-sortable">
98     <div class="box col-md-9">
99         <div class="panel panel-default">
100         <div class="panel-heading" data-original-title="">
101             <span class="icon-tag"></span> Tickets of {$target_name}
102         </div>
103         <div class="panel-body">
104             <div class="row-fluid">
105                 <legend>Tickets</legend>
106                 <table class="table table-striped table-bordered bootstrap-datatable datatable">
107                     <thead>
108                             <tr>
109                                     <th>ID</th>
110                                     <th>Title</th>
111                                     <th>Timestamp</th>
112                                     <th>Category</th>
113                                     <th>Status</th>
114                             </tr>
115                     </thead>
116                     <tbody>
117                           {foreach from=$ticketlist item=ticket}
118                           <tr>
119                                 <td>{$ticket.tId}</td>
120                                 <td><a href ="index.php?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
121                                 <td class="center"><i>{$ticket.timestamp}</i></td>
122                                 <td class="center">{$ticket.category}</td>
124                                 <td class="center"><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}">{if $ticket.status eq 0} <span class="icon-exclamation-sign icon-white"></span>{/if} {$ticket.statusText}</span></td>
125                           </tr>
126                           {/foreach}
128                     </tbody>
129             </table>
130             </div>
131         </div>
132         </div>
133     </div><!--/span-->
134 </div><!--/row-->
135 {/block}