{% load bootstrap5_form %} {% comment %} One form field, in Bootstrap 5 markup. Widget classes are set in Python by bootstrap5_form.apply_classes, so this template only lays fields out. Errors use `invalid-feedback d-block` rather than plain `invalid-feedback`, because the latter is only revealed by a sibling `.is-invalid` and that relationship does not hold for the choice groups below. {% endcomment %} {% if field|is_checkbox %}