1 <script type="text/javascript" src="view/theme/frio/js/mod_admin.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
2 <link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
4 <div id="admin-users" class="adminpage generic-page-wrapper">
5 <h1>{{$title}} - {{$page}}</h1>
7 <form action="{{$baseurl}}/admin/users" method="post">
8 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
10 {{* We organize the settings in collapsable panel-groups *}}
11 <div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
21 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-pending">
23 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-pending-collapse" aria-expanded="{{if count($pending) > 0}}true{{else}}false{{/if}}" aria-controls="admin-settings-pending-collapse">
24 {{$h_pending}} ({{count($pending)}})
29 <div id="admin-settings-pending-collapse" class="panel-collapse collapse {{if count($pending) > 0}}in{{/if}}" role="tabpanel" aria-labelledby="admin-settings-pending">
31 <table id="pending" class="table table-hover">
35 <div class="checkbox">
36 <input type="checkbox" id="admin-settings-pending-select" class="selecttoggle" data-select-class="pending_ckbx"/>
37 <label for="admin-settings-pending-select"></label>
40 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
45 {{foreach $pending as $u}}
48 <div class="checkbox">
49 <input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" />
50 <label for="id_pending_{{$u.hash}}"></label>
53 <td>{{$u.created}}</td>
57 <a href="{{$baseurl}}/admin/users/allow/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$approve}}"><i class="fa fa-check" aria-hidden="true"></i></a>
58 <a href="{{$baseurl}}/admin/users/deny/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$deny}}"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
64 <th>{{$pendingnotetext}}</th>
65 <td colspan="4">{{$u.note}}</td>
71 <div class="panel-footer">
72 <button type="submit" name="page_users_deny" value="1" class="btn btn-primary">
73 <i class="fa fa-trash-o" aria-hidden="true"></i> {{$deny}}
75 <button type="submit" name="page_users_approve" value="1" class="btn btn-warinig">
76 <i class="fa fa-check" aria-hidden="true"></i> {{$approve}}
80 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
93 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-user">
95 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-user-collapse" aria-expanded="false" aria-controls="admin-settings-user-collapse">
96 {{$h_users}} ({{count($users)}})
101 <div id="admin-settings-user-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-user">
104 <table id="users" class="table table-hover">
108 <div class="checkbox">
109 <input type="checkbox" id="admin-settings-users-select" class="selecttoggle" data-select-class="users_ckbx"/>
110 <label for="admin-settings-users-select"></label>
114 {{foreach $th_users as $k=>$th}}
115 {{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])) }}
116 <th class="th-{{$k}}">
117 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}" class="btn-link table-order">
118 {{if $order_users == $th.1}}
119 {{if $order_direction_users == "+"}}
136 {{foreach $users as $u}}
137 <tr id="user-{{$u.uid}}" class="{{if $u.blocked != 0}}blocked{{/if}}">
139 {{if $u.is_deletable}}
140 <div class="checkbox">
141 <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
142 <label for="id_user_{{$u.uid}}"></label>
148 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
149 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
150 <td>{{$u.email}}</td>
151 {{if $order_users == $th_users.2.1}}
152 <td>{{$u.register_date}}</td>
155 {{if $order_users == $th_users.3.1}}
156 <td>{{$u.login_date}}</td>
159 {{if $order_users == $th_users.4.1}}
160 <td>{{$u.lastitem_date}}</td>
163 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
166 {{if $u.page_flags_raw==0}}fa-user{{/if}} {{* PAGE_NORMAL *}}
167 {{if $u.page_flags_raw==1}}fa-bullhorn{{/if}} {{* PAGE_SOAPBOX *}}
168 {{if $u.page_flags_raw==2}}fa-users{{/if}} {{* PAGE_COMMUNITY *}}
169 {{if $u.page_flags_raw==3}}fa-heart{{/if}} {{* PAGE_FREELOVE *}}
170 {{if $u.page_flags_raw==4}}fa-rss{{/if}} {{* PAGE_BLOG *}}
171 {{if $u.page_flags_raw==5}}fa-user-secret{{/if}} {{* PAGE_PRVGROUP *}}
172 " title="{{$u.page_flags}}">
174 {{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}
176 {{if $u.account_type_raw==1}}fa-sitemap{{/if}} {{* ACCOUNT_TYPE_ORGANISATION *}}
177 {{if $u.account_type_raw==2}}fa-newspaper-o{{/if}} {{* ACCOUNT_TYPE_NEWS *}}
178 {{if $u.account_type_raw==3}}fa-comments{{/if}} {{* ACCOUNT_TYPE_COMMUNITY *}}
179 " title="{{$u.account_type}}">
182 {{if $u.is_admin}}<i class="fa fa-user-secret text-primary" title="{{$siteadmin}}"></i>{{/if}}
183 {{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
187 <td class="text-right">
188 <button type="button" class="btn-link admin-settings-action-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
191 <tr id="user-{{$u.uid}}-detail" class=" details hidden {{if $u.blocked != 0}}blocked{{/if}}">
194 {{if $order_users != $th_users.2.1}}
196 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}" class="btn-link table-order">
197 ↕ {{$th_users.2.0}}</button> : {{$u.register_date}}
201 {{if $order_users != $th_users.3.1}}
203 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}" class="btn-link table-order">
204 ↕ {{$th_users.3.0}}</button> : {{$u.login_date}}
208 {{if $order_users != $th_users.4.1}}
210 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}" class="btn-link table-order">
211 ↕ {{$th_users.4.0}}</button> : {{$u.lastitem_date}}
215 {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
217 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}" class="btn-link table-order">
218 ↕ {{$th_users.5.0}}</button> : {{$u.page_flags}}{{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}, {{$u.account_type}}{{/if}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}
223 <td class="text-right">
224 {{if $u.is_deletable}}
226 <a href="{{$baseurl}}/admin/users/unblock/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$unblock}}">
227 <i class="fa fa-circle-o" aria-hidden="true"></i>
230 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$block}}">
231 <i class="fa fa-ban" aria-hidden="true"></i>
234 <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')">
235 <i class="fa fa-trash" aria-hidden="true"></i>
245 <div class="panel-footer">
246 <button type="submit" name="page_users_block" value="1" class="btn btn-warning">
247 <i class="fa fa-ban" aria-hidden="true"></i> {{$block}}
249 <button type="submit" name="page_users_unblock" value="1" class="btn btn-default">
250 <i class="fa fa-circle-o" aria-hidden="true"></i> {{$unblock}}
252 <button type="submit" name="page_users_delete" value="1" class="btn btn-danger" onclick="return confirm_delete('{{$confirm_delete_multi}}')">
253 <i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}
257 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
265 * DELETED Users table
271 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-deleted">
273 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-deleted-collapse" aria-expanded="false" aria-controls="admin-settings-deleted-collapse">
274 {{$h_deleted}} ({{count($deleted)}})
279 <div id="admin-settings-deleted-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-deleted">
280 <table id="deleted" class="table table-hover">
284 {{foreach $th_deleted as $k=>$th}}
285 {{if in_array($k,[0,1,5])}}
292 {{foreach $deleted as $u}}
294 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
295 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
296 <td>{{$u.email}}</td>
297 <td>{{$u.deleted}}</td>
316 <div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-new-user">
318 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-new-user-collapse" aria-expanded="false" aria-controls="admin-settings-new-user-collapse">
324 <div id="admin-settings-new-user-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-new-user">
325 <div class="panel-body">
326 {{include file="field_input.tpl" field=$newusername}}
327 {{include file="field_input.tpl" field=$newusernickname}}
328 {{include file="field_input.tpl" field=$newuseremail}}
330 <div class="panel-footer">
331 <button type="submit" class="btn btn-primary">{{$submit}}</button>