2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
{% block title %}
< title > Banned Domains< / title >
{% endblock %}
{% block content %}
< pre >
< / pre >
< div class = "overflow-x-auto" > < table class = "table table-striped mb-5" >
< thead class = "bg-primary text-white" >
< tr >
< th > Domain< / th >
< th > Ban reason< / th >
< / tr >
< / thead >
{% for domain in banned_domains %}
< tr >
< td > {{domain.domain}}< / td >
< td > {{domain.reason}}< / td >
< / tr >
{% endfor %}
< / table >
< form action = "/admin/banned_domains" method = "post" >
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< 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" >
2022-06-24 02:53:31 +00:00
< input autocomplete = "off" id = "ban-submit" type = "submit" onclick = "disable(this)" class = "btn btn-primary" value = "Toggle ban" disabled >
2022-05-04 23:09:46 +00:00
< / form >
2021-08-03 12:05:37 +00:00
{% endblock %}