{% extends 'django_spire/dropdown/ellipsis_dropdown.html' %} {% comment %} The actions menu of a row in a ModelCrudScrollComponent list. Edit and Delete call the list's editItem() and deleteItem(), so they work with form and confirmation components and with pages, and show when the list's can_edit and can_delete allow. Takes view_url and delete_label; item_key and component come from the row. {% endcomment %} {% block dropdown_menu_class %}dropdown-menu-end{% endblock %} {% block dropdown_content %} {% if view_url %}
  • View
  • {% endif %} {% if component.can_edit %}
  • Edit
  • {% endif %} {% if component.can_delete %}
  • {{ delete_label|default:'Delete' }}
  • {% endif %} {% endblock %}