{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags util_tags static %} {% block content %}
{% include "includes/share.html" %}

{{ page.title }}

{{ page.introduction }}

{% if page.form_fields %}
{% csrf_token %} {% if form.errors or form.non_field_errors %}
There were some errors with your form. Please amend the fields highlighted below. {% if form.non_field_errors %}
    {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %} {% for field in form %} {{ field.errors }} {% with widget_type=field|widget_type field_type=field|field_type %} {% if widget_type == 'checkbox_input' %}
{% if field.help_text %}{{ field.help_text }}{% endif %}
{{ field }} {% else %}
{% if field.help_text %}{{ field.help_text }}{% endif %}
{% if widget_type == 'date_input' or widget_type == 'date_time_input' %}
{% endif %} {{ field }} {% if widget_type == 'date_input' or widget_type == 'date_time_input' %}
{% endif %} {% endif %} {% endwith %} {% endfor %}
{% endif %}
{% endblock %}