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