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

{{ page.title }}

{{ page.introduction }}

{% if page.terms_and_conditions.exists and page.terms_and_conditions.first.terms_and_conditions.live %} {{page.terms_and_conditions.first.terms_and_conditions.title}} {% endif %} {% if user.is_authenticated and user.is_active or request.is_preview or self.allow_anonymous_submissions %} {% if form %}
{% csrf_token %} {{ form.media }} {% for field in form %} {% if field.is_hidden %} {{ field.as_hidden }} {% else %} {% if fields_step %}

Question {{ fields_step.paginator.answered|length|add:forloop.counter }}

{% else %}

Question {{ forloop.counter }}

{% endif %}
{{ field.help_text }} {{ field }} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %} {% endfor %} {% trans "Submit Form" as text %}
{% else %}

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

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