{% extends 'django_spire/dropdown/dropdown.html' %}

{% block dropdown_position %}end-0 top-100{% endblock %}

{% block dropdown_trigger %}
    <span
        class="bi bi-three-dots-vertical cursor-pointer d-inline-flex align-items-center justify-content-center"
        style="padding: 0.5rem 0.75rem; margin: -0.5rem -0.75rem;"
        x-bind="trigger"
    >
    </span>
{% endblock %}

{% block dropdown_content %}
    {% if view_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='View' link_url=view_url %}
    {% elif x_view_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='View' x_link_url=x_view_url %}
    {% endif %}

    {% if edit_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='Edit' link_url=edit_url %}
    {% elif x_edit_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='Edit' x_link_url=x_edit_url %}
    {% endif %}

    {% if delete_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='Delete' link_url=delete_url link_css='text-app-danger' %}
    {% elif x_delete_url %}
        {% include 'django_spire/dropdown/element/dropdown_link_element.html' with link_text='Delete' x_link_url=x_delete_url link_css='text-app-danger' %}
    {% endif %}
{% endblock %}
