2017-12-01 00:40:55 -05:00
|
|
|
<script>
|
|
|
|
function confirm_delete(uname){
|
2021-10-16 19:18:11 -04:00
|
|
|
return confirm("{{$l10n.confirm_delete}}".format(uname));
|
2017-12-01 00:40:55 -05:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="adminpage">
|
2021-10-16 19:18:11 -04:00
|
|
|
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
|
|
|
<p>{{$l10n.intro}}</p>
|
|
|
|
<p>{{$l10n.public nofilter}}</p>
|
|
|
|
{{$l10n.syntax nofilter}}
|
2017-12-01 00:40:55 -05:00
|
|
|
|
2021-10-16 19:18:11 -04:00
|
|
|
<h2>{{$l10n.addtitle}}</h2>
|
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server/add" method="get">
|
2017-12-01 00:40:55 -05:00
|
|
|
{{include file="field_input.tpl" field=$newdomain}}
|
2019-07-25 22:37:30 -04:00
|
|
|
<div class="submit">
|
2021-10-16 19:18:11 -04:00
|
|
|
<button type="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
2019-07-25 22:37:30 -04:00
|
|
|
</div>
|
2017-12-01 00:40:55 -05:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{{if $entries}}
|
2021-10-16 19:18:11 -04:00
|
|
|
<h2>{{$l10n.currenttitle}}</h2>
|
2019-04-21 21:40:05 -04:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server" method="post">
|
2017-12-01 00:40:55 -05:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
{{foreach $entries as $e}}
|
|
|
|
{{include file="field_input.tpl" field=$e.domain}}
|
|
|
|
{{include file="field_input.tpl" field=$e.reason}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$e.delete}}
|
|
|
|
{{/foreach}}
|
2019-07-25 22:37:30 -04:00
|
|
|
<div class="submit">
|
2021-10-16 19:18:11 -04:00
|
|
|
<button type="submit" class="btn btn-primary" name="page_blocklist_edit" value="{{$l10n.savechanges}}">{{$l10n.savechanges}}</button>
|
2019-07-25 22:37:30 -04:00
|
|
|
</div>
|
2017-12-01 00:40:55 -05:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|