Fix form in admin page

This commit is contained in:
Asaf Gartner 2021-10-25 02:25:50 +03:00
parent 623aaec9d8
commit aab2205e62
1 changed files with 2 additions and 2 deletions

View File

@ -36,13 +36,13 @@
<a name="{{ .ID }}" href="{{ .Url }}">#{{ .ID }}</a>
</div>
<div class="flex pr3">
<form method="POST" class="mr4" target="{{ $.SubmitUrl }}">
<form method="POST" class="mr4" action="{{ $.SubmitUrl }}">
{{ csrftoken $.Session }}
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />
<input type="submit" value="Approve User" />
</form>
<form method="POST" target="{{ $.SubmitUrl }}">
<form method="POST" action="{{ $.SubmitUrl }}">
{{ csrftoken $.Session }}
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />