style(templates): format Selmer .html templates for readability
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>
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
{# Plain sales-summary edit form (no wizard). db/id rides in a hidden field; all other
|
||||
state is the live form, re-derived against the entity each request (no EDN snapshot,
|
||||
no step-params). #}
|
||||
<form id="summary-edit-form"{{ form_attrs|safe }}><input type="hidden" name="db/id" value="{{ db_id }}">{{ modal|safe }}</form>
|
||||
<form id="summary-edit-form"{{ form_attrs|safe }}>
|
||||
<input type="hidden" name="db/id" value="{{ db_id }}">
|
||||
{{ modal|safe }}
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,21 @@
|
||||
{# Sales-summary modal body: a read-only Debits | Credits two-column view of the auto
|
||||
items (each account is inline-editable), a swappable totals/balance block, and an
|
||||
editable Manual Items section with a working "New Summary Item" add. #}
|
||||
<div class="space-y-4 p-2"><div class="grid grid-cols-2 gap-6"><div><div class="font-semibold text-sm mb-2">Debits</div><div class="space-y-1">{{ debit_rows|safe }}</div></div><div><div class="font-semibold text-sm mb-2">Credits</div><div class="space-y-1">{{ credit_rows|safe }}</div></div></div><div id="summary-totals">{{ totals|safe }}</div><div class="mt-4 border-t pt-3"><div class="font-semibold text-sm mb-2">Manual Items</div><div class="space-y-2" id="manual-items">{{ manual_rows|safe }}</div><div class="mt-2 flex justify-center">{{ new_item_button|safe }}</div></div></div>
|
||||
<div class="space-y-4 p-2">
|
||||
<div class="grid grid-cols-2 gap-6">
|
||||
<div>
|
||||
<div class="font-semibold text-sm mb-2">Debits</div>
|
||||
<div class="space-y-1">{{ debit_rows|safe }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="font-semibold text-sm mb-2">Credits</div>
|
||||
<div class="space-y-1">{{ credit_rows|safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="summary-totals">{{ totals|safe }}</div>
|
||||
<div class="mt-4 border-t pt-3">
|
||||
<div class="font-semibold text-sm mb-2">Manual Items</div>
|
||||
<div class="space-y-2" id="manual-items">{{ manual_rows|safe }}</div>
|
||||
<div class="mt-2 flex justify-center">{{ new_item_button|safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user