{% for survey in surveys %}
{% set course_code = survey.course ? survey.course.code : '' %}
{% set session_id = survey.session ? survey.session.id : 0 %}
{% if survey.course %}
-
{{ survey.course.title }}
{% if survey.session %}
({{ survey.session.name }})
{% endif %}
{% endif %}
-
{{ 'FromDateXToDateY'|get_lang|format(survey.avail_from|api_convert_and_format_date(2), survey.avail_till|api_convert_and_format_date(2)) }}
{% else %}
{{ 'NoPendingSurveys'|get_lang }}
{% endfor %}