{% load wagtailcore_tags gem_tags %} {% wagtail_site as current_site %} {% if self.description %}
{% for block in self.description %} {% if forloop.counter %} {% if block.block_type == 'heading' %}

{{ block.value }}

{% else %} {{ block }} {% endif %} {% endif %} {% endfor %}
{% endif %} {% if page.terms_and_conditions.exists and page.terms_and_conditions.first.terms_and_conditions.live %}
{% trans "Read:" %} {{page.terms_and_conditions.first.terms_and_conditions.title}}
{% endif %} {% comment %} {% if fields_step and fields_step.paginator.num_pages > 1 %}
{% if self.your_words_competition %} {% blocktrans with pages=fields_step.paginator.num_pages %}This competition has {{pages}} pages {% endblocktrans %} {% elif not self.display_form_directly %} {% blocktrans with pages=fields_step.paginator.num_pages %}This survey has {{pages}} pages{% endblocktrans %} {% endif %}
{% endif %} {% endcomment %} {% if form %}
{% csrf_token %} {% if not is_via_freebasics %} {{ form.media }} {% endif %} {% for field in form %} {% if field|fieldtype != 'HiddenInput' %}
{% if field.help_text %} {% if field|fieldtype == 'CharacterCountWidget' %}

{{ field.help_text }}

{% else %}

{{ field.help_text }}

{% endif %} {% endif %} {% if field|fieldtype == 'CheckboxInput' %}
{% elif field|fieldtype == 'CheckboxSelectMultiple' %} {% for value, text in field.field.choices %}
{% endfor %} {% elif field|fieldtype == 'RadioSelect' %} {% for value, text in field.field.choices %}
{% endfor %} {% elif field|fieldtype == 'Select' %}
{% else %} {{field}} {% endif %} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %} {% endfor %} {% if form.display_form_directly %} {% if user.is_authenticated and user.is_active or request.is_preview or form.allow_anonymous_submissions %} {% trans "Vote" as defaultText %} {% else %}
{% trans "Log in to vote" %}
{% endif %} {% else %} {% endif %} {% if fields_step and fields_step.paginator.num_pages > 1 %}

{% with page=fields_step.number pages=fields_step.paginator.num_pages %} {% trans "Page" %} {{page}} {% trans "of" %} {{pages}} {% endwith %}

{% endif %} {% if not fields_step or fields_step and fields_step.number == 1 %} {% endif %}
{% else %}

{% trans 'You have already completed' %} {% if form_page.your_words_competition and not form_page.personalisableform %} {% trans 'this competition.' %} {% elif form_page.display_form_directly and not form_page.personalisableform %} {% trans 'this poll.' %} {% elif form_page.contact_form and not form_page.personalisableform %} {% trans 'this form.' %} {% elif form_page.article_form_only and not form_page.personalisableform %} {% trans 'a response for this article.' %} {% else %} {% trans 'this survey.' %} {% endif %}

{% if form_page.show_results %} {% trans "Show Results" %} {% else %}
{% trans "Back home" %}
{% endif %}
{% endif %}