{% load form_block %} {% with styles=form_block.form.label_class.LabelStyle %} {% with label=labels|get_by_style:styles.VERTICAL %} {% with hlabel=labels|get_by_style:styles.HORIZONTAL %} {% with wlabel=labels|get_by_style:styles.WIDGET %} {% if label %}
{% if not hlabel and not wlabel %} {% include "./label_vertical.html" with for_field=field %} {% else %} {% include "./label_vertical.html" %} {% endif %}
{% endif %}
{% with s=hlabel|yesno:"-2,0" sp=form_block.span %} {% if hlabel %}
{% endif %} {% with types=form_block.InputType %} {% with tsp=form_block.tablet_span dsp=form_block.desktop_span %}
{% endwith %} {% if form_block.type == types.TEXT or form_block.type == types.NUMERIC %} {% include "./custom_block_text.html" %} {% elif form_block.type == types.CHOICE %} {% include "./custom_block_choice.html" %} {% elif form_block.type == types.BOOLEAN %} {% include "./custom_block_boolean.html" %} {% endif %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}