Component for dropdowns
also use hoverable dropdowns
This commit is contained in:
18
bookwyrm/templates/snippets/status_options.html
Normal file
18
bookwyrm/templates/snippets/status_options.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends 'snippets/components/dropdown.html' %}
|
||||
|
||||
{% block dropdown-trigger %}
|
||||
<span class="icon icon-dots-three">
|
||||
<span class="is-sr-only">More options</span>
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block dropdown-list %}
|
||||
<li role="menuitem">
|
||||
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
||||
{% csrf_token %}
|
||||
<button class="button is-danger is-light" type="submit">
|
||||
Delete post
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user