{% extends "coderedcms/pages/web_page.html" %} {% load coderedcms_tags static wagtailcore_tags %} {% block content_body %} {{ block.super }} {% if page.form_live %}
{% block progress_bar %} {% if steps|length > 1 %}
{% with last_step=steps|last %} {% widthratio step.index|add:"1" last_step.index|add:"1" 100 as width %}
Step {{step.index|add:"1"}} / {{last_step.index|add:"1"}} ({{ width }}%)
{% endwith %}

{% endif %} {% endblock %} {% block stream_form %}
{% csrf_token %} {% block stream_form_fields %} {% for item in markups_and_bound_fields %} {% if item.1 == 'markup' %} {% include_block item.0 %} {% else %} {% include "coderedcms/includes/stream_forms/render_field.html" with block=item.2 field=item.0 %} {% endif %} {% endfor %} {% endblock %} {% block captcha %} {% if page.spam_protection %} {% include "coderedcms/includes/form_honeypot.html" %} {% endif %} {% endblock %} {% block stream_form_actions %}
{% if step != steps|first %} Previous {% endif %}
{% endblock %}
{% endblock %}
{% endif %} {% endblock %} {% block coderedcms_scripts %} {{ block.super }} {% endblock %}