2017-12-01 06:40:55 +01:00
|
|
|
<script>
|
|
|
|
function confirm_delete(uname){
|
|
|
|
return confirm("{{$confirm_delete}}".format(uname));
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="adminpage">
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
<p>{{$intro}}</p>
|
|
|
|
<p>{{$public}}</p>
|
|
|
|
|
|
|
|
<h2>{{$addtitle}}</h2>
|
2019-04-22 03:40:05 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server" method="post">
|
2017-12-01 06:40:55 +01:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
{{include file="field_input.tpl" field=$newdomain}}
|
|
|
|
{{include file="field_input.tpl" field=$newreason}}
|
|
|
|
<div class="submit"><input type="submit" name="page_blocklist_save" value="{{$submit}}" /></div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{if $entries}}
|
|
|
|
<h2>{{$currenttitle}}</h2>
|
|
|
|
<p>{{$currentintro}}</p>
|
2019-04-22 03:40:05 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server" method="post">
|
2017-12-01 06:40:55 +01: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}}
|
|
|
|
<div class="submit"><input type="submit" name="page_blocklist_edit" value="{{$savechanges}}" /></div>
|
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|