{% load wise_icons %} {% comment %} The items of an actions menu, for `_record_actions.html` and `_row_actions.html`: pass `items` (the dicts `wise_actions.build_actions` returns). A destructive action gets a divider above it and the danger color; an action that changes the record when it runs is a POST form with a CSRF token, never a link. {% endcomment %} {% for action in items %} {% if action.danger and not forloop.first %}{% endif %} {% if action.post %}
{% csrf_token %}
{% else %} {% lucide action.icon size=16 %}{{ action.label }} {% endif %} {% endfor %}