{% extends 'base.html' %} {% load wagtailimages_tags wagtailcore_tags static core_tags gem_tags %} {% wagtail_site as current_site %} {% block content %}

{% if self.your_words_competition %}{% trans 'Share your story' %}{% elif self.display_form_directly %}{% trans 'Vote' %}{% else %}{% trans 'Quiz' %}{% endif %}

{% if not self.display_form_directly %} {% if self.image %} {% endif %} {% endif %}

{{self.title}}

{% if self.introduction %}

{{page.introduction|smarttruncatechars:550|safe}}

{% endif %} {% if user.is_authenticated and user.is_active or request.is_preview or self.allow_anonymous_submissions %} {% 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 %} {% if fields_step and fields_step.paginator.num_pages > 1 %} {% endif %} {% if form %} {% include "forms/form.html" with formtype="poll" formtypeClass="polls" %} {% comment %}
{% csrf_token %} {% if not is_via_freebasics %} {{ form.media }} {% endif %} {% for field in form %} {% if field|fieldtype == 'CheckboxInput' %}
{% endif %} {% if 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 %}
{% if field.help_text %} {% if field|fieldtype == 'CharacterCountWidget' %}

{{ field.help_text }}

{% else %}

{{ field.help_text }}

{% endif %} {% endif %} {{field}}
{% endif %} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% 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 %} {% endif %}
{% endcomment %} {% else %}

{% trans 'You have already completed this ' %} {% if self.your_words_competition %}{% trans 'competition' %}{% elif self.display_form_directly %}{% trans 'poll' %}{% else %}{% trans 'survey' %}{% endif %}.

{% if request.path == "/" %} {% trans "Show Results" %} {% else %} {% trans "Back home" %} {% endif %}
{% endif %} {% else %} {% endif %}
{% endblock %}