moviewyrm/bookwyrm/templates/components/dropdown.html

31 lines
659 B
HTML
Raw Normal View History

{% spaceless %}
2021-05-11 21:41:28 +00:00
{% load utilities %}
{% with 0|uuid as uuid %}
<details
id="menu_{{ uuid }}"
class="
dropdown control
{% if right %}is-right{% endif %}
2021-12-22 19:03:13 +00:00
has-text-left
"
>
<summary
class="button control dropdown-trigger pulldown-menu {{ class }}"
>
{% block dropdown-trigger %}{% endblock %}
</summary>
<div class="dropdown-menu">
<ul
id="menu_options_{{ uuid }}"
class="dropdown-content p-0 is-clipped"
role="menu"
>
{% block dropdown-list %}{% endblock %}
</ul>
</div>
</details>
{% endwith %}
{% endspaceless %}