mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-29 11:52:56 +01:00
Transfers are still two transactions, now linked to each other:
- shown as one item in lists, with each side's amount, account,
category and tags ("Combine transfers" user setting, on by default)
- date, reference date, paid and mute stay in sync between sides
- edit opens the transfer form; delete, restore, duplicate and bulk
actions act on both sides
- transfers made by the transfer form now trigger rules for each side
Recurring and quick transactions gain a Transfer type, with a "To
account" and optional "To amount", generating linked transfers. A
transfer can be converted into either.
Existing transfers are left as they are, since there is no reliable
way to pair them.
26 lines
1.0 KiB
HTML
26 lines
1.0 KiB
HTML
{% load crispy_forms_field %}
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="join w-full" role="group" aria-label="{{ field.label }}">
|
|
{% for choice in field.field.choices %}
|
|
<input type="radio"
|
|
class="join-item btn {% if forloop.first %}btn-success{% elif forloop.last %}btn-error{% else %}btn-info{% endif %} {% if field.errors %}input-error{% endif %} btn-outline flex-1"
|
|
name="{{ field.html_name }}"
|
|
id="{{ field.html_name }}_{{ forloop.counter }}_tr"
|
|
value="{{ choice.0 }}"
|
|
aria-label="{{ choice.1 }}"
|
|
{% if choice.0 == field.value %}checked{% endif %}>
|
|
{% endfor %}
|
|
</div>
|
|
{% if field.errors %}
|
|
<div class="text-error text-sm mt-1">
|
|
{% for error in field.errors %}
|
|
{{ error }}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% if field.help_text %}
|
|
<small class="text-base-content/60 text-sm">{{ field.help_text }}</small>
|
|
{% endif %}
|
|
</div>
|