{% load crispy_forms_filters %} {% load l10n %} {% load i18n %}
{% if field.field.header %} {% for hdr in field.field.header %} {% endfor %} {% endif %} {% for row in field.field.rows %} {% for choices in row.cols %} {% endfor %} {% endfor %}
{{ hdr }}
{{ row.name }} {% for choice in choices %}
{% if field.errors and forloop.last and not inline_class %} {% include 'bootstrap4/layout/field_errors_block.html' %} {% endif %}
{% endfor %}
{% if field.errors and inline_class %}
{# the following input is only meant to allow boostrap to render the error message as it has to be after an invalid input. As the input has no name, no data will be sent. #} {% include 'bootstrap4/layout/field_errors_block.html' %}
{% endif %} {% include 'bootstrap4/layout/help_text.html' %}