2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2022-11-21 08:52:22 +00:00
{% block pagetitle %}Banned Domains{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2022-12-29 14:20:27 +00:00
< script defer src = "{{'js/banned_domains.js' | asset}}" > < / script >
2022-10-20 22:14:25 +00:00
2022-10-29 00:38:39 +00:00
< div class = "overflow-x-auto mt-2" >
2022-10-20 22:14:25 +00:00
< table class = "table table-striped mb-5" id = "domains-table" >
< thead class = "bg-primary text-white" >
< tr >
< th > Domain< / th >
< th > Ban reason< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
{% for domain in banned_domains %}
< tr >
< td > {{domain.domain}}< / td >
< td > {{domain.reason}}< / td >
< td >
2022-10-28 23:35:14 +00:00
< button type = "button" class = "btn btn-danger" onclick = "unbanDomain(this, '{{domain.domain}}')" > Unban< / button >
2022-10-20 22:14:25 +00:00
< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
< form action = "/admin/ban_domain" method = "post" >
2022-11-15 09:19:08 +00:00
< input type = "hidden" name = "formkey" value = "{{v|formkey}}" >
2022-10-20 22:14:25 +00:00
< input autocomplete = "off" name = "domain" placeholder = "Enter domain here.." class = "form-control" required >
< input autocomplete = "off" name = "reason" placeholder = "Enter ban reason here.." oninput = "document.getElementById('ban-submit').disabled=false" class = "form-control mt-2" >
< input autocomplete = "off" id = "ban-submit" type = "submit" onclick = "disable(this)" class = "btn btn-primary mt-2" value = "Ban domain" disabled >
< / form >
< / div >
{% endblock %}