{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %} {% if field|is_checkbox %}
{% crispy_field field 'class' 'form-check-input' %} {% include 'bootstrap5/layout/help_text_and_errors.html' %}
{% else %}
{% crispy_field field 'placeholder' field.label %} {% include 'bootstrap5/layout/help_text_and_errors.html' %}
{% endif %} {% endif %}