{% load wagtailcore_tags core_tags gem_tags %}
{% csrf_token %} {% if not is_via_freebasics %} {{ form.media }} {% endif %} {% for field in form %} {% if not field|fieldtype == 'HiddenInput' %}
{% if field.help_text %} {% if field|fieldtype == 'CharacterCountWidget' %}

{{ field.help_text }}

{% else %}

{{ field.help_text }}

{% endif %} {% endif %} {% if field|fieldtype == 'CheckboxInput' %}
{% elif 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 %} {{field}} {% endif %} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %} {% endfor %} {% trans "Submit" as text %} {% trans "Vote" as polltext %} {# The display_survey_directly uses survey instead of self #} {% if survey.display_survey_directly %} {% if user.is_authenticated and user.is_active or request.is_preview or survey.allow_anonymous_submissions %} {% else %} {% trans "Log in to vote" as buttontext %} {% url LOGIN_URL as link %} {% include "patterns/basics/buttons/sp_variations/button.html" with type="primary" hyperlink=link|add:"?next="|add:request.path text=buttontext %} {% endif %} {% else %} {% endif %} {% if fields_step and fields_step.paginator.num_pages > 1 %}

{% with page=fields_step.number pages=fields_step.paginator.num_pages %} {% trans Page %} {{ page }} {% trans of %} {{ pages }} {% endwith %}

{% endif %}