{% comment %} Override of crispy_tailwind's tailwind/layout/fieldset.html. Gives a Fieldset the same daisyUI divider look uses to separate a set of rows from the form around it (mvp/templates/cotton/form/formset/index.html) — one section break, however Django groups the fields behind it (#311). The divider is a
, not the . carries special fieldset-border-straddling layout that browsers do not lift even when its `display` is overridden to `flex` — the divider's `::before`/`::after` line pseudo-elements never generate on it, so a `class="divider"` legend renders as bare text with no lines either side (caught visually, not by the render_to_string tests, which only ever asserted the legend's text and class list, not its computed layout). stays, `sr-only`, purely so the fieldset keeps its accessible group name for screen readers; the visible divider is a sibling
, `aria-hidden` so the heading is not announced twice. This file must stay at this same relative path so Django's app_dirs template loader picks it up ahead of crispy_tailwind's own copy — `mvp` is listed before `crispy_tailwind` in INSTALLED_APPS. See mvp/templates/tailwind/layout/help_text.html for the same override pattern applied to a different vendored template. {% endcomment %}
{% if legend %} {{ legend|safe }} {% endif %} {{ fields|safe }}