{% for item in media %}
{% set url = getSurveyMedia(item) %} {% if item.getMediaType == 1 %} {{ name.getName }} {% elseif item.getMediaType == 2 %} {% endif %}
{% endfor %}