{% extends 'formative/base.html' %} {% load form_block %} {% load utils %} {% block page_title %}Edit - {{ program_form.name }}{% endblock %} {% block pre_layout %}
{% csrf_token %} {% endblock %} {% block content %} {% with styles=program_form.label_class.LabelStyle %} {% if page == 1 %} {% with label=field_labels.email|get_by_style:styles.VERTICAL %} {% if label %}
{% include "./label_vertical.html" %}
{% endif %} {% endwith %}
Email:
{{ submission|underscore:'email' }}
{% endif %} {% for form_block in visible_blocks %} {% block_labels field_labels form_block as labels %} {% if form_block.block_type == 'custom' %} {% block_field form form_block as field %} {% include "./custom_block.html" %} {% elif form_block.block_type == 'collection' %} {% collection_items visible_items form_block as items %} {% include "./collection_block.html" %} {% else %} {% with label=labels|get_by_style:styles.VERTICAL %} {% if label %}
{% include "./label_vertical.html" %}
{% endif %} {% endwith %} {% include_stock form_block labels %} {% endif %} {% endfor %} {% endwith %} {% if 0 and program_form.num_pages > 1 %}
Page {{ page }} of {{ program_form.num_pages }}
{% endif %}
{{ form.non_field_errors }}
{% with program_form as form %} {% with submission|underscore:'id' as id %} {% endwith %} {% endwith %}
{% endblock %} {% block post_layout %}
{% include "./tooltips.html" %} {% endblock %}