{% for button in buttons %} {% if button.submit %} {% else %} {% if button.icon %} {% endif %}{{ button.display_text }} {% endif %} {% endfor %}