{% macro action_data_attributes(action) -%} {% if action.is_link -%} href="{{ model._row_actions_handlers.get(action.name)(request, pk) }}" {% else %} href="#" {% if action.confirmation is not none -%} data-bs-toggle="modal" data-bs-target="#modal-action" data-confirmation="{{ action.confirmation }}" {% else %} data-no-confirmation-action="true" {% endif %} {% if action.custom_response -%} data-custom-response="true" {% endif %} data-submit-btn-text="{{ action.submit_btn_text }}" data-submit-btn-class="{{ action.submit_btn_class }}" data-form="{{ action.form }}" {% endif %} data-is-row-action="true" data-name="{{ action.name }}" {% endmacro %} {% if display_type == "ICON_LIST" -%}
{% elif display_type == "DROPDOWN" -%}