{% load wagtailcore_tags core_tags gem_tags %}
{% csrf_token %} {% if not is_via_freebasics %} {{ form.media }} {% endif %} {% for field in form %} {% if field|fieldtype != 'HiddenInput' %} {% if field|fieldtype == 'CheckboxInput' %}
{% endif %} {% if 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 %}
{% if field.help_text %} {% if field|fieldtype == 'CharacterCountWidget' %}

{{ field.help_text }}

{% else %}

{{ field.help_text }}

{% endif %} {% endif %} {{field}}
{% endif %} {% if field.errors %} {% endif %} {% endif %} {% endfor %} {% trans "Submit" as text %} {% trans "Vote" as polltext %} {# The display_form_directly uses survey instead of self #} {% if form.display_form_directly %} {% if user.is_authenticated and user.is_active or request.is_preview or form.allow_anonymous_submissions %} {% else %} {% trans "Log in to vote" %} {% endif %} {% else %} {% endif %} {% if fields_step and fields_step.paginator.num_pages > 1 %} {% endif %} {% if not fields_step or fields_step and fields_step.number == 1 %} {% endif %}