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