{# One expense-account row, read from a loop-bound `row` view-model (account-row-vm). The account typeahead, location select, and remove button all reuse the shared component partials (typeahead.html / location-select.html / a-icon-button via its ctx); only the table layout is inline. The location cell (#account-location-N) swaps just itself on account change; the remove button swaps the whole #bulk-code-form. #}
{% with width=row.account.width x_data=row.account.x_data x_model=row.account.x_model key=row.account.key disabled=row.account.disabled a_xinit=row.account.a_xinit placeholder=row.account.placeholder hidden_attrs=row.account.hidden_attrs %}{% include "templates/components/typeahead.html" %}{% endwith %}

{{ row.account_error }}

{% with name=row.location.name variant=row.location.variant options=row.location.options %}{% include "templates/components/location-select.html" %}{% endwith %}

{{ row.location_error }}

{% with variant=row.pct.variant attrs=row.pct.attrs %}{% include "templates/components/money-input.html" %}{% endwith %}

{{ row.pct_error }}

{% with extra=row.remove.extra attrs=row.remove.attrs body=row.remove.body %}{% include "templates/components/a-icon-button.html" %}{% endwith %}