{% load wagtailcore_tags i18n personalise_extras %} {% block content %} {% filter_surveys_by_segments surveys request as filtered_surveys %} {% for survey in filtered_surveys %} {% with survey=survey.molo_survey_page form=survey.form %}

{{ survey.title }}

{{ survey.intro }}

{% if not survey.display_survey_directly %} {% trans "Take The Survey" as button_text %} {% else %} {% if user.is_authenticated and user.is_active or request.is_preview or survey.allow_anonymous_submissions %} {% if form %}
{% csrf_token %} {% for field in form %}
{{ field.help_text }} {{ field }} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endfor %} {% trans "Submit Survey" as text %}
{% else %}

{% trans 'You have already completed this survey.' %}

{% endif %} {% else %} {% endif %} {% endif %}
{% endwith %} {% endfor %} {% endblock %}