view_ip.html: use ?/IP endpoint to remove bans and add notes

This commit is contained in:
Zankaria 2024-12-29 00:19:48 +01:00
parent e52465753e
commit 7c982da304

View file

@ -43,7 +43,7 @@
{% endif %}
{% if mod|hasPermission(config.mod.create_notes) %}
<form action="" method="post" style="margin:0">
<form action="?/IP/{{ ip|url_encode(true) }}" method="post" style="margin:0">
<input type="hidden" name="token" value="{{ security_token }}">
<table>
<tr>
@ -74,7 +74,7 @@
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
{% for ban in bans %}
<form action="" method="post" style="text-align:center">
<form action="?/IP/{{ ip|url_encode(true) }}" method="post" style="text-align:center">
<input type="hidden" name="token" value="{{ security_token }}">
<table style="width:400px;margin-bottom:10px;border-bottom:1px solid #ddd;padding:5px">
<tr>