{% macro action(action_element, url, class) -%} {% 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 %} {%- endmacro %} {% macro confirm_action(action_element, url, class, confirm_message) -%} {% 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 %} {%- endmacro %}