Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / ams / templates / userlist.tpl
blobffbc43f5839afd6756f8a4311e06b0bb211f0d58
1 {block name=content}
2 <div class="row-fluid">
3                                 <div class="box col-md-12">
4                                 <div class="panel panel-default">
5                                         <div class="panel-heading" data-original-title>
6                                                 <span class="icon-user"></span> Members
7                                         </div>
8                                         <div class="panel-body">
9                                                 <table class="table table-striped table-bordered">
10                                                   <thead>
11                                                           <tr>
12                                                                   <th>Id</th>
13                                                                   <th>Username</th>
14                                                                   <th>Email</th>
15                                                                   <th>Permission</th>
16                                                                   <th>Action</th>
17                                                           </tr>
18                                                   </thead>
19                                                   <tbody>
20                                                         {foreach from=$userlist item=element}
21                                                         <tr>
22                                                                 <td>{$element.id}</td>
23                                                                 <td class="center"><a href="index.php?page=show_user&id={$element.id}">{$element.username}</a></td>
24                                                                 <td class="center">{$element.email}</td>
25                                                                 {if $element.permission eq 1}<td class="center"><span class="label label-success">User</span></td>{/if}
26                                                                 {if $element.permission eq 2}<td class="center"><span class="label label-warning">Moderator</span></td>{/if}
27                                                                 {if $element.permission eq 3}<td class="center"><span class="label label-important">Admin</span></td>{/if}
28                                                                 <td class="center">
29                                                                         <div class="btn-group" style="display: inline-block;">
30                                                                                 <a class="btn btn-primary" href="index.php?page=show_user&id={$element.id}"><span class=" icon-eye-open icon-white"></span> Show User</a>
31                                                                         </div>
32                                                                         <div class="btn-group" style="display: inline-block;">
33                                                                                 <a class="btn btn-info" href="index.php?page=settings&id={$element.id}"><span class=" icon-pencil icon-white"></span> Edit User</a>
34                                                                         </div>
35                                                                         {if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
36                                                                         <div class="btn-group" style="display: inline-block;">
37                                                                         <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class=" icon-star icon-white"></span> Change Role<span class="caret"></span></button>
38                                                                         <ul class="dropdown-menu">
39                                                                             <li class="divider"></li>
40                                                                                 {if $element.permission eq 1}
41                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a></li>
42                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
43                                                                                 {else if $element.permission eq 2 }
44                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
45                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
46                                                                                 {else if $element.permission eq 3 }
47                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
48                                                                                 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a></li>
49                                                                                 {/if}
50                                                                                 <li class="divider"></li>
51                                                                         </ul>
53                                                                       </div>
54                                                                         {/if}
55                                                                 </td>
57                                                         </tr>
58                                                         {/foreach}
60                                                   </tbody>
61                                           </table>
62                                           <div style="width: 300px; margin:0px auto;">
63                                                 <ul class="pagination">
64                                                         <li><a href="index.php?page=userlist&pagenum=1">&laquo;</a></li>
65                                                         {foreach from=$links item=link}
66                                                         <li {if $link == $currentPage}class="active"{/if}><a href="index.php?page=userlist&pagenum={$link}">{$link}</a></li>
67                                                         {/foreach}
68                                                         <li><a href="index.php?page=userlist&pagenum={$lastPage}">&raquo;</a></li>
69                                                 </ul>
70                                           </div>
71                                         </div>
72                                         </div>
73                                 </div><!--/span-->
75                         </div><!--/row-->
76 {/block}