{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags static core_tags i18n %} {% block content %}
{% if competition.thank_you_page.get_parent_page.get_effective_image %} {% image competition.thank_you_page.get_parent_page.get_effective_image width-98 as tmp_photo %} {{ self.get_parent_page.get_effective_image.title }} {% endif %}
{% trans "Share your story" %}

{{competition.title}}

{{competition.description}}


{% for block in competition.content %} {% if block.block_type == 'heading' %}
{{ block.value }}
{% else %} {% if block.block_type == 'image' %} {% image block.value width-240 %} {% else %} {% if block.block_type == 'numbered_list' %}
    {% for item in block.value %}
  1. {{item}}
  2. {% endfor %}
{% else %} {% if block.block_type == 'list' %} {% else %} {{ block }} {% endif %} {% endif %} {% endif %} {% endif %} {% endfor %}
{% csrf_token %} {% if form.story_name.errors %}

* {{form.story_name.errors|join:' '}}

{% endif %}
{{ form.story_name }} {% if form.story_text.errors %}

* {{form.story_text.errors|join:' '}}

{% endif %} {{ form.story_text }}
{% if form.terms_or_conditions_approved.errors %}

* {{form.terms_or_conditions_approved.errors|join:' '}}

{% endif %} {{ form.terms_or_conditions_approved }}
{{ form.hide_real_name }}
{% trans "Home" %}
{% endblock %}