{% extends 'base.html' %} {% load wagtailcore_tags wagtailimages_tags molo_forms_tags %} {% wagtail_site as current_site %} {% block content %} {% if self.your_words_competition and not self.personalisableform %}
{% if self.image %}
{% image self.image width-98 as tmp_photo_small %} {% image self.image width-320 as tmp_photo_large %} {{ form.image.title }}
{% else %}
{% endif %} {% elif self.display_form_directly and not self.personalisableform %}

{% trans "Take a vote!" %}

{% elif self.article_form_only and not self.personalisableform %}
{% if self.image %}
{% image self.image width-165 as icon_small %} {{ self.title }}
{% else %}
{% endif %} {% else %}

{{self.title}}

{% if self.image %}
{% image self.image width-165 as icon_small %} {{ self.title }}
{% else %}
{% endif %} {% endif %} {% if not self.article_form_only %}

{{self.title}}

{% endif %} {% if self.show_results and results %}

{% trans 'Your' %} {% if self.your_words_competition %} {% trans 'GCN competition' %} {% elif self.display_form_directly and not self.personalisableform %} {% trans 'poll' %} {% else %} {% trans 'survey!' %} {% endif %} {% trans 'has been completed successfully. See results' %}

    {% for question, answers in results.items %} {% for answer, count in answers.items %}
  • {% if self.show_results_as_percentage %} {{answer}}
    {{ count }}%
    {% else %}

    {{answer}} - {{ count }} vote{{ count|pluralize }}

    {% endif %}
  • {% endfor %} {% endfor %}
{% else %} {% if self.thank_you_text %}

{{self.thank_you_text|url_to_anchor|safe}}

{% else %}
{% if self.your_words_competition %}

{% trans 'Your GCN competition has been completed successfully!' %}

{% else %}

{% trans "Thank you for submitting" %} {% if self.display_form_directly and not self.personalisableform %} {% trans 'this poll.' %} {% elif self.contact_form %} {% trans 'this form!' %} {% elif self.article_form_only %} {% trans 'a response for this article' %}. {% else %} {% trans 'this survey!' %} {% endif %}

{% endif %}
{% endif %} {% endif %} {% if self.your_words_competition and not self.personalisableform %}
{% elif self.display_form_directly and not self.personalisableform %}
{% elif self.article_form_only and not self.personalisableform %}
{% else %}
{% endif %} {% if not self.article_form_only %}
{% trans "Back home" %}
{% else %}
{% trans "Back to Article" %}
{% endif %} {% endblock %} {% block breadcrumbs %} {% endblock %}