Fix form in admin page
This commit is contained in:
parent
623aaec9d8
commit
aab2205e62
|
@ -36,13 +36,13 @@
|
||||||
<a name="{{ .ID }}" href="{{ .Url }}">#{{ .ID }}</a>
|
<a name="{{ .ID }}" href="{{ .Url }}">#{{ .ID }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex pr3">
|
<div class="flex pr3">
|
||||||
<form method="POST" class="mr4" target="{{ $.SubmitUrl }}">
|
<form method="POST" class="mr4" action="{{ $.SubmitUrl }}">
|
||||||
{{ csrftoken $.Session }}
|
{{ csrftoken $.Session }}
|
||||||
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
|
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
|
||||||
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />
|
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />
|
||||||
<input type="submit" value="Approve User" />
|
<input type="submit" value="Approve User" />
|
||||||
</form>
|
</form>
|
||||||
<form method="POST" target="{{ $.SubmitUrl }}">
|
<form method="POST" action="{{ $.SubmitUrl }}">
|
||||||
{{ csrftoken $.Session }}
|
{{ csrftoken $.Session }}
|
||||||
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
|
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
|
||||||
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />
|
<input type="hidden" name="user_id" value="{{ .Author.ID }}" />
|
||||||
|
|
Loading…
Reference in New Issue