{% for fieldset in form.fieldsets %}
    <fieldset class="fieldset fieldset-{{ forloop.counter }} {{ fieldset.classes }}">
        {% if fieldset.legend %}
            <legend class="fieldset-legend">{{ fieldset.legend }}</legend>
        {% endif %}

        {% if fieldset.description %}
            <p class="text-sm text-base-content/60">{{ fieldset.description }}</p>
        {% endif %}

        {% for field in fieldset %}
            {% if field.is_hidden %}
                {{ field }}
            {% else %}
                {% include "crispy-daisyui/field.html" %}
            {% endif %}
        {% endfor %}
    {% if not forloop.last or not fieldset_open %}
        </fieldset>
    {% endif %}
{% endfor %}

