mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-28 19:32:53 +01:00
Splits a transaction into named parts whose amounts add up to its amount, e.g. the items of a big purchase or the fees inside an investment contribution. Parts can be set on transactions, installment plans, recurring and quick transactions, and are copied to the transactions they generate. Transfers can't have parts. Transactions show their parts under a tab on the card and in the investment detail. The content filter matches part names, and bulk edits leave the amount of split transactions alone.
15 lines
807 B
HTML
15 lines
807 B
HTML
{% load i18n %}
|
|
<div class="sub-row" {% if sub.DELETE.value %}hidden{% endif %}>
|
|
{{ sub.id }}
|
|
<input type="checkbox" name="{{ sub.DELETE.html_name }}" class="hidden" {% if sub.DELETE.value %}checked{% endif %}>
|
|
<div class="join w-full">
|
|
{{ sub.name }}
|
|
{{ sub.amount }}
|
|
<button type="button" class="btn btn-soft btn-error join-item" @click="remove($el.closest('.sub-row'))"
|
|
aria-label="{% translate 'Remove' %}"><i class="fa-solid fa-xmark fa-fw"></i></button>
|
|
</div>
|
|
{% for error in sub.non_field_errors %}<div class="text-error text-sm">{{ error }}</div>{% endfor %}
|
|
{% for error in sub.name.errors %}<div class="text-error text-sm">{{ error }}</div>{% endfor %}
|
|
{% for error in sub.amount.errors %}<div class="text-error text-sm">{{ error }}</div>{% endfor %}
|
|
</div>
|