rDrama/files/templates/admin/banned_domains.html

37 lines
995 B
HTML
Raw Normal View History

2021-10-15 14:08:27 +00:00
{% extends "default.html" %}
{% block title %}
<title>Banned Domains</title>
{% endblock %}
{% block content %}
<pre>
</pre>
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-10-15 14:08:27 +00:00
<thead class="bg-primary text-white">
<tr>
2022-02-24 12:03:28 +00:00
<th>Domain</th>
<th>Ban reason</th>
2021-10-15 14:08:27 +00:00
</tr>
</thead>
{% for domain in banned_domains %}
<tr>
2022-02-24 12:03:28 +00:00
<td>{{domain.domain}}</td>
2021-10-15 14:08:27 +00:00
<td>{{domain.reason}}</td>
</tr>
{% endfor %}
</table>
<form action="/admin/banned_domains" method="post">
2022-03-19 16:19:02 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
2021-12-28 12:41:26 +00:00
<input autocomplete="off" name="domain" placeholder="Enter domain here.." class="form-control" required>
2022-02-01 05:35:05 +00:00
<input autocomplete="off" name="reason" placeholder="Enter ban reason here.." oninput="document.getElementById('ban-submit').disabled=false" class="form-control">
2021-12-28 12:41:26 +00:00
<input autocomplete="off" id="ban-submit" type="submit" class="btn btn-primary" value="Toggle ban" disabled>
2021-10-15 14:08:27 +00:00
</form>
2021-08-03 12:05:37 +00:00
{% endblock %}