{% load crispy_forms_field %}
<div id="div_{{ field.auto_id }}" class="mb-3">
    <div class="flex items-center">
        {% crispy_field field 'class' 'mr-2' %}
        {% if field.label %}
            <label for="{{ field.id_for_label }}" class="text-gray-700 text-sm font-bold">{{ field.label }}</label>
        {% endif %}
    </div>
    {% if field.errors %}
        <div class="text-red-600 text-sm mt-1">{{ field.errors }}</div>
    {% endif %}
    {% if field.help_text %}
        <p class="text-gray-500 text-sm mt-1">{{ field.help_text|safe }}</p>
    {% endif %}
</div>
