forked from mirrors/bookwyrm
Unique form identifier for delete status button
This commit is contained in:
parent
ccc52287c5
commit
6178925053
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
{% if status.user == request.user %}
|
{% if status.user == request.user %}
|
||||||
{# things you can do to your own statuses #}
|
{# things you can do to your own statuses #}
|
||||||
<li role="menuitem" class="dropdown-item p-0">
|
<li role="menuitem" class="dropdown-item p-0">
|
||||||
<form name="delete-{{ status.id }}" action="/delete-status/{{ status.id }}" method="post">
|
<form name="delete-{{ status.id|uuid }}" action="/delete-status/{{ status.id }}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="button is-radiusless is-danger is-light is-fullwidth is-small" type="submit">
|
<button class="button is-radiusless is-danger is-light is-fullwidth is-small" type="submit">
|
||||||
{% trans "Delete status" %}
|
{% trans "Delete status" %}
|
||||||
|
|
Loading…
Reference in a new issue