]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/admin/users.tpl
6e2051aca3f998790c7df652f00017488397fc13
[friendica.git] / view / theme / frio / templates / admin / users.tpl
1 <script type="text/javascript" src="view/theme/frio/js/mod_admin.js"></script>
2 <link rel="stylesheet" href="view/theme/frio/css/mod_admin.css" type="text/css" media="screen"/>
3
4 <div id="admin-users" class="adminpage  generic-page-wrapper">
5         <h1>{{$title}} - {{$page}}</h1>
6
7         <form action="{{$baseurl}}/admin/users" method="post">
8                 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
9
10
11                 <!--
12                         **
13                         *
14                         *               PENDING Users table
15                         *
16                         **
17                 -->
18                 <div class="panel panel-default">
19                         <div class="panel-heading"><h3 class="panel-title">{{$h_pending}}</h3></div>
20
21                         {{if $pending}}
22                                 <table id="pending" class="table table-hover">
23                                         <thead>
24                                         <tr>
25                                                 <th></th>
26                                                 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
27                                                 <th></th>
28                                         </tr>
29                                         </thead>
30                                         <tbody>
31                                 {{foreach $pending as $u}}
32                                         <tr>
33                                                 <td><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
34                                                 <td>{{$u.created}}</td>
35                                                 <td>{{$u.name}}</td>
36                                                 <td>{{$u.email}}</td>
37                                                 <td>
38                                                         <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title="{{$approve}}"><i class="fa fa-thumbs-up" aria-hidden="true"></i></a>
39                                                         <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title="{{$deny}}"><i class="fa fa-thumbs-down" aria-hidden="true"></i></a>
40                                                 </td>
41                                         </tr>
42                                         <tr class="details">
43                                                 <td></td>
44                                                 <th>{{$pendingnotetext}}</th>
45                                                 <td colspan="4">{{$u.note}}</td>
46                                         </tr>
47                                 {{/foreach}}
48                                         </tbody>
49                                 </table>
50                                 <div class="panel-footer">
51                                         <div class="row">
52                                                 <div class="col-xs-3">
53                                                         <div class="btn-group" role="group">
54                                                                 <button type="button" class="btn btn-default selectall" data-select-all="pending_ckbx"><i class="fa fa-check-square-o" aria-hidden="true"></i></button>
55                                                                 <button type="button" class="btn btn-default selectnone" data-select-none="pending_ckbx"><i class="fa fa-square-o" aria-hidden="true"></i></button>
56                                                         </div>
57                                                 </div>
58                                                 <div class="col-xs-9 text-right">
59                                                         <button type="submit" name="page_users_deny" class="btn btn-primary"><i class="fa fa-thumbs-down" aria-hidden="true"></i> {{$deny}}</button>
60                                                         <button type="submit" name="page_users_approve" class="btn btn-warinig"><i class="fa fa-thumbs-up" aria-hidden="true"></i> {{$approve}}</button>
61                                                 </div>
62                                         </div>
63                                 </div>
64                         {{else}}
65                                 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
66                         {{/if}}
67                 </div>
68
69 <!--
70         **
71         *
72         *               USERS Table
73         *
74         **
75 -->
76         <div class="panel panel-default">
77                 <div class="panel-heading"><h3 class="panel-title">{{$h_users}}</h3></div>
78                 {{if $users}}
79
80                         <table id="users" class="table table-hover">
81                                 <thead>
82                                 <tr>
83                                         <th></th>
84                                         <th></th>
85                                         {{foreach $th_users as $k=>$th}}
86                                         {{if $k < 2 || $order_users == $th.1 || ($k==5 && !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1])) }}
87                                         <th class="th-{{$k}}">
88                                                 <a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
89                                                         {{if $order_users == $th.1}}
90                                                                 {{if $order_direction_users == "+"}}
91                                                                 &#8595;
92                                                                 {{else}}
93                                                                 &#8593;
94                                                                 {{/if}}
95                                                         {{else}}
96                                                                 &#8597;
97                                                         {{/if}}
98                                                 {{$th.0}}</a>
99                                         </th>
100                                         {{/if}}
101                                         {{/foreach}}
102                                         <th></th>
103                                 </tr>
104                                 </thead>
105                                 <tbody>
106                                 {{foreach $users as $u}}
107                                         <tr id="user-{{$u.uid}}">
108                                                 <td>
109                                                 {{if $u.is_deletable}}
110                                                         <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
111                                                 {{else}}
112                                                         &nbsp;
113                                                 {{/if}}
114                                                 </td>
115                                                 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
116                                                 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
117                                                 <td>{{$u.email}}</td>
118                                                 {{if $order_users == $th_users.2.1}}
119                                                 <td>{{$u.register_date}}</td>
120                                                 {{/if}}
121
122                                                 {{if $order_users == $th_users.3.1}}
123                                                 <td>{{$u.login_date}}</td>
124                                                 {{/if}}
125
126                                                 {{if $order_users == $th_users.4.1}}
127                                                 <td>{{$u.lastitem_date}}</td>
128                                                 {{/if}}
129
130                                                 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
131                                                 <td>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
132                                                 {{/if}}
133                                                 <td class="text-right">
134                                                         <button type="button" class="btn-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
135                                                 </td>
136                                         </tr>
137                                         <tr id="user-{{$u.uid}}-detail" class="hidden details">
138                                                 <td>&nbsp;</td>
139                                                 <td colspan="4">
140                                                         {{if $order_users != $th_users.2.1}}
141                                                                 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}">
142                                                                         &#8597; {{$th_users.2.0}}</a> : {{$u.register_date}}</p>
143                                                         {{/if}}
144
145                                                         {{if $order_users != $th_users.3.1}}
146                                                                 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}">
147                                                                                 &#8597; {{$th_users.3.0}}</a> : {{$u.login_date}}</p>
148                                                         {{/if}}
149
150                                                         {{if $order_users != $th_users.4.1}}
151                                                                 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}">
152                                                                                 &#8597; {{$th_users.4.0}}</a> : {{$u.lastitem_date}}</p>
153                                                         {{/if}}
154
155                                                         {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
156                                                                 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}">
157                                                                                 &#8597; {{$th_users.5.0}}</a> : {{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</p>
158                                                         {{/if}}
159
160                                                 </td>
161                                                 <td class="text-right">
162                                                         {{if $u.is_deletable}}
163                                                                 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
164                                                                         {{if $u.blocked==0}}
165                                                                         <i class="fa fa-ban" aria-hidden="true"></i>
166                                                                         {{else}}
167                                                                         <i class="fa fa-circle-o" aria-hidden="true"></i>
168                                                                         {{/if}}
169                                                                 </a>
170                                                                 <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')"><i class="fa fa-trash" aria-hidden="true"></i></a>
171                                                         {{else}}
172                                                                 &nbsp;
173                                                         {{/if}}
174                                                 </td>
175                                         </tr>
176                                 {{/foreach}}
177                                 </tbody>
178                         </table>
179                         <div class="panel-footer">
180                                 <div class="row">
181                                         <div class="col-xs-3">
182                                                 <div class="btn-group" role="group">
183                                                         <button type="button" class="btn btn-default selectall" data-select-all="users_ckbx"><i class="fa fa-check-square-o" aria-hidden="true"></i></button>
184                                                         <button type="button" class="btn btn-default selectnone" data-select-none="users_ckbx"><i class="fa fa-square-o" aria-hidden="true"></i></button>
185                                                 </div>
186                                         </div>
187                                         <div class="col-xs-9 text-right">
188                                                         <button type="submit" name="page_users_block" class="btn btn-warning">  <i class="fa fa-ban" aria-hidden="true"></i> {{$block}} / <i class="fa fa-circle-o" aria-hidden="true"></i> {{$unblock}}</button>
189                                                         <button type="submit" name="page_users_delete" class="btn btn-danger" onclick="return confirm_delete('{{$confirm_delete_multi}}')"><i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}</button>
190                                         </div>
191                                 </div>
192                         </div>
193                 {{else}}
194                         <div class="panel-body text-center bg-danger">NO USERS?!?</div>
195                 {{/if}}
196                 </div>
197
198
199
200         </form>
201
202
203
204
205
206 <!--
207         **
208         *
209         *               DELETED Users table
210         *
211         **
212 -->
213         {{if $deleted}}
214         <div class="panel panel-default">
215                 <div class="panel-heading"><h3 class="panel-title">{{$h_deleted}}</h3></div>
216                 <table id="deleted" class="table table-hover">
217                         <thead>
218                         <tr>
219                                 <th></th>
220                                 {{foreach $th_deleted as $k=>$th}}
221                                         {{if in_array($k,[0,1,5])}}
222                                         <th>{{$th}}</th>
223                                         {{/if}}
224                                 {{/foreach}}
225                         </tr>
226                         </thead>
227                         <tbody>
228                         {{foreach $deleted as $u}}
229                                 <tr>
230                                         <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
231                                         <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
232                                         <td>{{$u.email}}</td>
233                                         <td>{{$u.deleted}}</td>
234                                 </tr>
235                         {{/foreach}}
236                         </tbody>
237                 </table>
238         </div>
239 {{/if}}
240
241
242
243 <!--
244         **
245         *
246         *               NEW USER Form
247         *
248         **
249 -->
250         <form action="{{$baseurl}}/admin/users" method="post">
251                 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
252
253                 <div class="panel panel-default">
254                         <div class="panel-heading"><h3 class="panel-title">{{$h_newuser}}</h3></div>
255                         <div class="panel-body">
256                                 {{include file="field_input.tpl" field=$newusername}}
257                                 {{include file="field_input.tpl" field=$newusernickname}}
258                                 {{include file="field_input.tpl" field=$newuseremail}}
259                         </div>
260                         <div class="panel-footer text-right">
261                                 <button type="submit" class="btn btn-primary">{{$submit}}</button>
262                         </form>
263                 </div>
264         </form>
265
266 </div>