]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/admin/contactblock.tpl
Add admin/contactblock page
[friendica.git] / view / theme / frio / templates / admin / contactblock.tpl
1
2 <script>
3         function selectall(cls) {
4                 $('.' + cls).prop('checked', true);
5                 return false;
6         }
7         function selectnone(cls) {
8                 $('.' + cls).prop('checked', false);
9                 return false;
10         }
11 </script>
12 <div id="adminpage">
13         <h1>{{$title}} - {{$page}}</h1>
14         <p>{{$description}}</p>
15         <form action="{{$baseurl}}/admin/contactblock" method="post">
16         <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
17
18                 <h3>{{$h_contacts}}</h3>
19         {{if $contacts}}
20                 <table id="contactblock" class="table table-condensed table-striped">
21                         <thead>
22                                 <tr>
23                                         <th></th>
24                                                 {{foreach $th_contacts as $th}}
25                                         <th>
26                                                 {{$th}}
27                                         </th>
28                                         {{/foreach}}
29                                         <th></th>
30                                 </tr>
31                         </thead>
32                         <tbody>
33                                 {{foreach $contacts as $contact}}
34                                 <tr>
35                                         <td><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
36                                         <td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.addr}}"></td>
37                                         <td class="name">{{$contact.name}}</td>
38                                         <td class="addr" colspan="2"><a href="{{$contact.url}}" title="{{$contact.addr}}" >{{$contact.url}}</a></td>
39                                 </tr>
40                                 {{/foreach}}
41                         </tbody>
42                 </table>
43                 <p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
44                 {{$paginate}}
45                 <div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock|escape:'html'}}" /></div>
46         {{else}}
47                 <p>{{$no_data|escape:'html'}}</p>
48         {{/if}}
49         </form>
50
51         <h3>{{$h_newblock}}</h3>
52         <form action="{{$baseurl}}/admin/contactblock" method="post">
53                 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
54                 <table id="contactblock">
55                         <tbody>
56                                 <tr>
57                                         <td>{{include file="field_input.tpl" field=$contacturl}}</td>
58                                 </tr>
59                         </tbody>
60                 </table>
61                 <div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit|escape:'html'}}" /></div>
62         </form>
63 </div>