2023-12-25 13:26:19 -05:00
|
|
|
<script type="text/javascript" src="view/theme/frio/js/mod_admin.js?v={{constant('\Friendica\App::VERSION')}}"></script>
|
|
|
|
<link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{constant('\Friendica\App::VERSION')}}" type="text/css" media="screen"/>
|
2018-04-22 17:06:06 -04:00
|
|
|
|
|
|
|
<div id="admin-contactblock" class="adminpage generic-page-wrapper">
|
2017-12-01 00:43:39 -05:00
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
2018-12-14 01:24:26 -05:00
|
|
|
<p>{{$description nofilter}}</p>
|
2018-04-22 17:06:06 -04:00
|
|
|
|
|
|
|
{{* We organize the settings in collapsable panel-groups *}}
|
|
|
|
<div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
|
|
|
|
{{* The form for entering user profile which should be blocked *}}
|
|
|
|
<div class="panel">
|
2020-08-15 20:18:05 -04:00
|
|
|
<div class="panel-heading section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-block">
|
2018-04-22 17:06:06 -04:00
|
|
|
<h4>
|
2021-11-20 02:16:30 -05:00
|
|
|
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-block-collapse" aria-expanded="false" aria-controls="admin-settings-contactblock-block-collapse">
|
2018-04-22 17:06:06 -04:00
|
|
|
{{$h_newblock}}
|
2021-11-20 02:16:30 -05:00
|
|
|
</button>
|
2018-04-22 17:06:06 -04:00
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
|
2020-08-15 20:18:05 -04:00
|
|
|
<div id="admin-settings-contactblock-block-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-contactblock-block">
|
2022-11-09 08:13:12 -05:00
|
|
|
<form action="{{$baseurl}}/moderation/blocklist/contact" method="post">
|
2018-04-22 17:06:06 -04:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$contacturl}}
|
2021-10-12 20:15:20 -04:00
|
|
|
{{include file="field_checkbox.tpl" field=$contact_block_purge}}
|
2019-05-15 19:30:13 -04:00
|
|
|
{{include file="field_textarea.tpl" field=$contact_block_reason}}
|
2018-04-22 17:06:06 -04:00
|
|
|
|
|
|
|
<div class="admin-settings-submit-wrapper form-group pull-right">
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="submit" class="btn btn-primary" name="page_contactblock_block" value="1">{{$submit}}</button>
|
2018-04-22 17:06:06 -04:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The list of blocked user profiles with the possibility to unblock them *}}
|
|
|
|
<div class="panel">
|
2020-08-15 20:18:05 -04:00
|
|
|
<div class="panel-heading section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-blocked">
|
2018-04-22 17:06:06 -04:00
|
|
|
<h4>
|
2021-11-20 02:16:30 -05:00
|
|
|
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-blocked-collapse" aria-expanded="{{if count($contacts) > 0}}true{{else}}false{{/if}}" aria-controls="admin-settings-contactblock-blocked-collapse">
|
2019-07-05 13:42:22 -04:00
|
|
|
{{$h_contacts}} ({{$total_contacts}})
|
2021-11-20 02:16:30 -05:00
|
|
|
</button>
|
2018-04-22 17:06:06 -04:00
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
|
2020-08-15 20:18:05 -04:00
|
|
|
<div id="admin-settings-contactblock-blocked-collapse" class="panel-body panel-collapse collapse {{if count($contacts) > 0}}in{{/if}}" role="tabpanel" aria-labelledby="admin-settings-contactblock-blocked">
|
2022-11-09 08:13:12 -05:00
|
|
|
<form action="{{$baseurl}}/moderation/blocklist/contact" method="post">
|
2018-04-22 17:06:06 -04:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
|
|
|
|
{{if $contacts}}
|
|
|
|
<table id="contactblock" class="table table-condensed table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
{{foreach $th_contacts as $th}}
|
|
|
|
<th>
|
|
|
|
{{$th}}
|
|
|
|
</th>
|
|
|
|
{{/foreach}}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{foreach $contacts as $contact}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/>
|
|
|
|
<label for="id_contact_{{$contact.id}}"></label>
|
|
|
|
</div>
|
|
|
|
</td>
|
2018-12-13 22:28:12 -05:00
|
|
|
<td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.addr}}"></td>
|
2019-05-15 19:30:13 -04:00
|
|
|
<td class="name">
|
|
|
|
{{$contact.name}}<br>
|
|
|
|
<a href="{{$contact.url}}" title="{{$contact.nickname}}">{{$contact.addr}}</a>
|
|
|
|
</td>
|
|
|
|
<td class="reason">{{if $contact.block_reason}}{{$contact.block_reason}}{{else}}N/A{{/if}}</td>
|
2018-04-22 17:06:06 -04:00
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{* Checkbox to select all blocked contacts *}}
|
|
|
|
<div class="checkbox">
|
2018-12-13 22:28:12 -05:00
|
|
|
<input type="checkbox" id="contactblock-select" class="selecttoggle contacts_ckbx" data-select-class="contacts_ckbx" data-select-all="{{$select_all}}" data-select-none="{{$select_none}}" title="{{$select_all}}"/>
|
2018-04-22 17:06:06 -04:00
|
|
|
<label for="contactblock-select"></label>
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-05-15 19:30:13 -04:00
|
|
|
<td colspan="3">
|
2018-04-22 17:06:06 -04:00
|
|
|
{{$total_contacts}}
|
|
|
|
<div class="admin-settings-submit-wrapper form-group pull-right">
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="submit" class="btn btn-small btn-default pull-right" name="page_contactblock_unblock" value="1">{{$unblock}}</button>
|
2018-04-22 17:06:06 -04:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
|
2018-12-13 22:35:51 -05:00
|
|
|
{{$paginate nofilter}}
|
2018-04-22 17:06:06 -04:00
|
|
|
|
|
|
|
{{else}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<p>{{$no_data}}</p>
|
2018-04-22 17:06:06 -04:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-01 00:43:39 -05:00
|
|
|
</div>
|