{"content": "\n<div class=\"djDebugPanelTitle\">\n  <button type=\"button\" class=\"djDebugClose\">\u00bb</button>\n  <h3>Template source: <code>bootstrap5/field.html</code></h3>\n</div>\n<div class=\"djDebugPanelContent\">\n  <div class=\"djdt-scroll\">\n    <code>{% load crispy_forms_field %}\n\n{% if field.is_hidden %}\n    {{ field }}\n{% else %}\n    {% if field|is_checkbox and tag != &quot;td&quot; %}\n        &lt;div class=&quot;mb-3{% if &#x27;form-horizontal&#x27; in form_class %} row{% endif %}&quot;&gt;\n        {% if label_class %}\n            &lt;div class=&quot;{% for offset in bootstrap_checkbox_offsets %}{{ offset|slice:&quot;7:14&quot; }}{{ offset|slice:&quot;4:7&quot; }}{{ offset|slice:&quot;14:16&quot; }} {% endfor %}{{ field_class }}&quot;&gt;\n        {% endif %}\n    {% endif %}\n    &lt;{% if tag %}{{ tag }}{% else %}div{% endif %} id=&quot;div_{{ field.auto_id }}&quot; class=&quot;mb-3{% if field|is_checkbox and form_show_labels %} form-check{% else %}{% if &#x27;form-horizontal&#x27; in form_class %} row{% endif %}{% endif %}{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}&quot;&gt;\n        {% if field.label and not field|is_checkbox and form_show_labels %}\n           {# not field|is_radioselect in row below can be removed once Django 3.2 is no longer supported #}\n            &lt;label {% if field.id_for_label and not field|is_radioselect %}for=&quot;{{ field.id_for_label }}&quot;{% endif %} class=&quot;{% if &#x27;form-horizontal&#x27; in form_class %}col-form-label{% else %}form-label{% endif %}{% if label_class %} {{ label_class }}{% endif %}{% if field.field.required %} requiredField{% endif %}&quot;&gt;\n                {{ field.label }}{% if field.field.required %}&lt;span class=&quot;asteriskField&quot;&gt;*&lt;/span&gt;{% endif %}\n            &lt;/label&gt;\n        {% endif %}\n\n        {% if field|is_checkboxselectmultiple or field|is_radioselect %}\n            {% include &#x27;bootstrap5/layout/radio_checkbox_select.html&#x27; %}\n        {% endif %}\n\n        {% if not field|is_checkboxselectmultiple and not field|is_radioselect %}\n            {% if field|is_checkbox and form_show_labels %}\n                    {% if field.errors %}\n                        {% crispy_field field &#x27;class&#x27; &#x27;form-check-input is-invalid&#x27; %}\n                    {% else %}\n                        {% crispy_field field &#x27;class&#x27; &#x27;form-check-input&#x27; %}\n                    {% endif %}\n                &lt;label for=&quot;{{ field.id_for_label }}&quot; class=&quot;form-check-label{% if field.field.required %} requiredField{% endif %}&quot;&gt;\n                    {{ field.label }}{% if field.field.required %}&lt;span class=&quot;asteriskField&quot;&gt;*&lt;/span&gt;{% endif %}\n                &lt;/label&gt;\n                {% include &#x27;bootstrap5/layout/help_text_and_errors.html&#x27; %}\n            {% else %}\n                {% if field_class %}&lt;div class=&quot;{{ field_class }}&quot;&gt;{% endif %}\n                    {% if field|is_file %}\n                        {% include &#x27;bootstrap5/layout/field_file.html&#x27; %}\n                    {% elif field|is_select %}\n                        {% if field.errors %}\n                            {% crispy_field field &#x27;class&#x27; &#x27;form-select is-invalid&#x27; %}\n                        {% else %}\n                            {% crispy_field field &#x27;class&#x27; &#x27;form-select&#x27; %}\n                        {% endif %}\n                    {% elif field|is_checkbox %}\n                        {% if field.errors %}\n                            {% crispy_field field &#x27;class&#x27; &#x27;form-check-input is-invalid&#x27; %}\n                        {% else %}\n                            {% crispy_field field &#x27;class&#x27; &#x27;form-check-input&#x27; %}\n                        {% endif %}\n                    {% elif field.errors %}\n                        {% crispy_field field &#x27;class&#x27; &#x27;form-control is-invalid&#x27; %}\n                    {% else %}\n                        {% crispy_field field &#x27;class&#x27; &#x27;form-control&#x27; %}\n                    {% endif %}\n                    {% if not field|is_file %}\n                        {% include &#x27;bootstrap5/layout/help_text_and_errors.html&#x27; %}\n                    {% endif %}\n                {% if field_class %}&lt;/div&gt;{% endif %}\n            {% endif %}\n        {% endif %}\n    &lt;/{% if tag %}{{ tag }}{% else %}div{% endif %}&gt;\n    {% if field|is_checkbox and tag != &quot;td&quot; %}\n        {% if label_class %}\n            &lt;/div&gt;\n        {% endif %}\n        &lt;/div&gt;\n    {% endif %}\n{% endif %}\n</code>\n  </div>\n</div>\n"}