{% extends 'base.html' %} {% load i18n %} {% load wagtailcore_tags %} {% block content %}

{{ page.title }}

{{ page.intro }}

{% if user.is_authenticated and user.is_active or request.is_preview or self.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 %}
{% else %}

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

{% trans "Back to Home page" %}
{% endif %} {% else %}
{% trans 'Please log in to take this survey' %}
{% endif %}
{% endblock %}