{% macro action(action_element) -%} {% if action_element['type'] == 4 %} {{ action_element['html'] }} {% else %} {% if action_element['icon'] %}{% if not action_element['only_icon'] %} {% endif %}{% endif %}{% if action_element['label'] and not action_element['only_icon'] %}{{ action_element['label'] }}{% endif %} {% endif %} {%- endmacro %} {% macro confirm_action(action_element) -%} {% if action_element['type'] == 4 %} {{ action_element['html'] }} {% else %} {% if action_element['icon'] %}{% if not action_element['only_icon'] %} {% endif %}{% endif %}{% if action_element['label'] and not action_element['only_icon'] %}{{ action_element['label'] }}{% endif %} {% endif %} {%- endmacro %}