Files
integreat/resources
Bryce e1a2f7b638 refactor(ssr): make the bulk-code form-ctx data-only
Move the remaining static markup out of the bulk-code form view-model and into
the templates, leaving form-ctx as plain data (plus a urls map and two button
contexts). The form/vendor hx-wiring, the status <option> list, the per-row
transition / location-swap / remove wiring, and the field names are now literal
in the templates, built from the row index and the shared urls.

- form.html: form attrs literal; ids render name="ids[N]" via forloop.counter0.
- body.html: vendor-changed wiring literal; status is an inline <select> with
  literal options (selected via {% if status.value = ... %}); field wrappers use
  {% if has_error %}has-error.
- account-row.html: the <tr> transitions, db/id hidden, location-cell swap and
  remove <a> are literal with {{ row.index }} / {{ urls.changed }}; only the
  Alpine x-data, errors, and the typeahead/location/money control contexts are
  passed as data.
- form-ctx / account-row-vm reduced to data; drop the now-unused
  sc/validated-field-classes.

Tradeoff: the status <select> and the remove <a> inline the shared base classes
(those partials can't take literal option labels / per-row wiring), so those two
class strings are duplicated in the bulk-code templates.

Verified: moved wiring correct by targeted checks (ids[N], form/vendor hx-*,
account-row-N, location swap + remove with index, status selected, no unrendered
tags); full browser flow green -- open (3 ids), vendor auto-populate, status
set+persist, add/remove row, submit "Transactions Coded", no JS errors. Shared
component class-sets unchanged (this commit only touches bulk-code).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 22:48:54 -07:00
..
2020-07-03 17:50:37 -07:00
2023-09-28 20:41:00 -07:00
2023-04-18 11:32:58 -07:00
2019-01-16 21:30:39 -08:00
2018-09-20 18:12:40 -07:00
2018-09-20 18:12:40 -07:00
2018-07-14 21:13:22 -07:00
2019-04-12 10:42:18 -07:00
2026-05-27 08:42:42 -07:00
2019-05-19 08:06:21 -07:00
2018-09-20 18:12:40 -07:00
2024-10-16 15:37:22 -07:00
2026-05-26 21:56:58 -07:00
2020-08-01 17:07:17 -07:00
2020-08-01 17:07:17 -07:00
2020-08-01 17:07:17 -07:00
2018-09-20 18:12:40 -07:00
2018-08-16 21:04:55 -07:00
2020-05-16 16:08:17 -07:00
2020-05-16 16:08:17 -07:00
2020-08-22 17:14:30 -07:00
2022-10-15 10:58:08 -07:00
2025-02-03 21:06:28 -08:00
2026-05-16 00:36:16 -07:00
2020-08-22 17:14:30 -07:00
2020-05-30 10:31:46 -07:00
2020-11-16 18:40:52 -08:00