fdfd
This commit is contained in:
parent
b5ee6d0ba3
commit
81088cd5cf
2 changed files with 2 additions and 2 deletions
|
@ -949,7 +949,7 @@ def admin_banned_domains(v):
|
||||||
banned_domains = g.db.query(BannedDomain).all()
|
banned_domains = g.db.query(BannedDomain).all()
|
||||||
return render_template("admin/banned_domains.html", v=v, banned_domains=banned_domains)
|
return render_template("admin/banned_domains.html", v=v, banned_domains=banned_domains)
|
||||||
|
|
||||||
@app.post("/admin/toggle_ban_domain")
|
@app.post("/admin/banned_domains")
|
||||||
@admin_level_required(4)
|
@admin_level_required(4)
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def admin_toggle_ban_domain(v):
|
def admin_toggle_ban_domain(v):
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<form action="/admin/toggle_ban_domain" method="post">
|
<form action="/admin/banned_domains" method="post">
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input name="domain" placeholder="Enter domain here.." class="form-control" required>
|
<input name="domain" placeholder="Enter domain here.." class="form-control" required>
|
||||||
<input name="reason" placeholder="Enter ban reason here.." class="form-control">
|
<input name="reason" placeholder="Enter ban reason here.." class="form-control">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue