{% 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 delete_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 %}