Budget and month pages now wrap sections in native <details> blocks with summary rows showing the group name and subtotal. Income and Flexible default open, Committed and Savings default closed so the day-to-day editing targets are visible and the set-and-forget commitments collapse out of the way. Primary Debt Target renders inside the Committed group after Debt Minimums. Every mutation appends a group-totals partial with OOB spans for all four group subtotals so the header stays in sync without a reload regardless of which section changed. Refs #11 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 lines
163 B
HTML
3 lines
163 B
HTML
{% for g in groups -%}
|
|
<span class="group-total" id="group-total-{{ g.group.value }}" hx-swap-oob="outerHTML">${{ '%.2f' | format(g.total) }}</span>
|
|
{% endfor -%}
|