{% extends 'base.html' %} {% load wagtailcore_tags wagtailimages_tags molo_forms_tags %} {% wagtail_site as current_site %} {% block content %}
{% if self.your_words_competition %}

{% trans 'Share your story' %}

{% elif self.contact_form %}

{{self.title}}

{% else %}

{% if self.display_form_directly %} {% trans 'Vote' %} {% elif self.article_form_only %} {% trans 'Reaction Questions' %} {% else %} {% trans 'Quiz' %} {% endif %}

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

{% if self.your_words_competition %} {% with wordSetting='GCN competition' %} {% blocktrans %}Your {{wordSetting}} has been completed successfully. See results{% endblocktrans %} {% endwith %} {% elif self.display_form_directly %} {% with wordSetting='poll' %} {% blocktrans %}Your {{wordSetting}} has been completed successfully. See results{% endblocktrans %} {% endwith %} {% else %} {% with wordSetting='survey' %} {% blocktrans %}Your {{wordSetting}} has been completed successfully. See results{% endblocktrans %} {% endwith %} {% endif %}

    {% 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 %}

{% trans "Thank you" %}

{{self.thank_you_text|url_to_anchor|safe}}

{% else %}

{% if self.your_words_competition %} {% trans "Your GCN competition has been completed successfully!" %} {% elif self.display_form_directly %} {% trans "Your poll has been completed successfully!" %} {% elif self.contact_form or self.article_form_only %} {% trans "The form has been completed successfully!" %} {% else %} {% trans "Your survey has been completed successfully!" %} {% endif %}

{% if self.your_words_competition %} {% trans "Thank you for submitting this GCN competition!" %} {% elif self.display_form_directly %} {% trans "Thank you for submitting this poll!" %} {% elif self.contact_form or self.article_form_only %} {% trans "Thank you for submitting this form" %} {% else %} {% trans "Thank you for submitting this survey!" %} {% endif %}

{% endif %} {% endif %}
{% if self.image %} {% endif %}
{% endblock %}