2017-04-24 23:44:27 +02:00
|
|
|
<script>
|
|
|
|
function confirm_delete(uname){
|
2017-04-25 18:57:50 +02:00
|
|
|
return confirm("{{$confirm_delete}}".format(uname));
|
2017-04-24 23:44:27 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="adminpage">
|
2017-04-25 18:57:50 +02:00
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
<p>{{$intro}}</p>
|
2017-04-24 23:44:27 +02:00
|
|
|
<p>{{$public}}</p>
|
|
|
|
|
|
|
|
<h2>{{$addtitle}}</h2>
|
|
|
|
<form action="{{$baseurl}}/admin/blocklist" method="post">
|
2017-04-25 18:57:50 +02:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2017-04-26 04:45:42 +02:00
|
|
|
{{include file="field_input.tpl" field=$newdomain}}
|
2017-04-24 23:44:27 +02:00
|
|
|
{{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>
|
|
|
|
<form action="{{$baseurl}}/admin/blocklist" method="post">
|
2017-04-25 18:57:50 +02:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2017-04-24 23:44:27 +02:00
|
|
|
{{foreach $entries as $e}}
|
2017-04-26 04:45:42 +02:00
|
|
|
{{include file="field_input.tpl" field=$e.domain}}
|
2017-04-24 23:44:27 +02:00
|
|
|
{{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>
|
2017-04-25 18:57:50 +02:00
|
|
|
|
2017-04-24 23:44:27 +02:00
|
|
|
</div>
|