Many templates were minified onto a single line. Reformatted every template under
resources/templates/ with djLint (django profile, 2-space indent) so the markup,
{% %} blocks, and {{ }} interpolations are human-readable, plus hand-split the two
multi-<span> option partials (invoice-option / rule-option). Pure reflow — no markup,
tag, or text content changed (the only content-adjacent delta is harmless trailing
whitespace inside single-interpolation elements). link.html / panel-empty.html stay on
one line (single element). resources/public/index.html left as-is (already readable,
non-template static).
Full e2e suite 72/72 green (no rendering regressions).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
695 B
HTML
13 lines
695 B
HTML
{# Field wrapper with label + always-present error <p> (the errors- variant of field-).
|
|
`classes` already folds group / has-error / caller class via hh/add-class; `attrs`
|
|
carries any pass-through div attributes (the per-row location cell hangs its hx-* /
|
|
x-dispatch swap wiring here); `body` is the pre-rendered inner control HTML;
|
|
`errors_str` is the comma-joined string errors (empty when none). #}
|
|
<div class="{{ classes }}"{{ attrs|safe }}>
|
|
{% if label %}
|
|
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{ label }}</label>
|
|
{% endif %}
|
|
{{ body|safe }}
|
|
<p class="mt-2 text-xs text-red-600 dark:text-red-500 h-4">{{ errors_str }}</p>
|
|
</div>
|