{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
{% if field.label and form_show_labels %} {% endif %}
{% if crispy_prepended_text %}
{{ crispy_prepended_text|safe }}
{% endif %} {% crispy_field field %} {% if crispy_appended_text %}
{{ crispy_appended_text|safe }}
{% endif %} {% if error_text_inline %} {% include 'bootstrap4/layout/field_errors.html' %} {% else %} {% include 'bootstrap4/layout/field_errors_block.html' %} {% endif %}
{% if not help_text_inline %} {% include 'bootstrap4/layout/help_text.html' %} {% endif %}
{% endif %}