]> git.mxchange.org Git - friendica.git/blob - view/templates/admin/users/pending.tpl
43d1e5248b04aaeaee660d6c1a9781f94e5551cf
[friendica.git] / view / templates / admin / users / pending.tpl
1 <script>
2         function confirm_delete(uname) {
3                 return confirm("{{$confirm_delete}}".format(uname));
4         }
5
6         function confirm_delete_multi() {
7                 return confirm("{{$confirm_delete_multi}}");
8         }
9
10         function selectall(cls) {
11                 $("." + cls).attr('checked', 'checked');
12                 return false;
13         }
14 </script>
15 <div id="adminpage">
16         <h1>{{$title}} - {{$page}} ({{$count}})</h1>
17
18         <form action="{{$baseurl}}/{{$query_string}}" method="post">
19                 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
20
21         {{if $pending}}
22                 <table id="pending">
23                         <thead>
24                         <tr>
25                                 {{foreach $th_pending as $th}}
26                                         <th>{{$th}}</th>{{/foreach}}
27                                 <th></th>
28                                 <th></th>
29                         </tr>
30                         </thead>
31                         <tbody>
32                         {{foreach $pending as $u}}
33                                 <tr>
34                                         <td class="created">{{$u.created}}</td>
35                                         <td class="name">{{$u.name}}</td>
36                                         <td class="email">{{$u.email}}</td>
37                                         <td class="checkbox">
38                                                 <input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}"/>
39                                         </td>
40                                         <td class="tools">
41                                                 <a href="{{$baseurl}}/admin/users/pending/allow/{{$u.uid}}?t={{$form_security_token}}" title="{{$approve}}">
42                                                         <span class="icon like"></span>
43                                                 </a>
44                                                 <a href="{{$baseurl}}/admin/users/pending/deny/{{$u.uid}}?t={{$form_security_token}}" title="{{$deny}}">
45                                                         <span class="icon dislike"></span>
46                                                 </a>
47                                         </td>
48                                 </tr>
49                                 <tr>
50                                         <td class="pendingnote"><p><span>{{$pendingnotetext}}:</span> {{$u.note}}</p></td>
51                                 </tr>
52                         {{/foreach}}
53                         </tbody>
54                 </table>
55                 <div class="selectall"><a href="#" onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
56                 <div class="submit">
57                         <input type="submit" name="page_users_deny" value="{{$deny}}"/>
58                         <input type="submit" name="page_users_approve" value="{{$approve}}"/>
59                 </div>
60         {{else}}
61                 <p>{{$no_pending}}</p>
62         {{/if}}
63         </form>
64 </div>