Files
WYGIWYH/app/templates/splits/fragments/tx_links.html
T
Herculino Trotta 77bf2d7bdb feat(splits): add split expenses for shared group costs
Track expenses shared with other people (trips, flats, dinners) and settle
up with the fewest payments.

- Events with WYGIWYH users and people without an account, who join through
  a share link and pick a password on first sign-in
- Equal, exact, percentage and share-weight splits that always add up
- Balances, a minimal settle-up plan and an activity feed showing what each
  item means for you
- Link items to your own transactions; recording a payment marks planned
  ones as paid
- Share menu: printable PDF report and PNG images of the summary, settle-up
  and balances (adds modern-screenshot)
- Only the two people involved or the organizer can record a payment;
  members can leave events they don't organize
2026-11-20 19:43:23 -03:00

17 lines
933 B
HTML

{% load i18n %}
{% for link in links %}
<span class="badge badge-sm {% if link.transaction.is_paid %}badge-success{% else %}badge-info{% endif %} gap-1"
data-tippy-content="{% if link.transaction.is_paid %}{% translate 'Linked transaction' %}{% else %}{% translate 'Linked transaction, not paid yet' %}{% endif %}">
<i class="fa-solid fa-link fa-fw"></i>{{ link.transaction.account.name }}
<button type="button" class="cursor-pointer" aria-label="{% translate 'Unlink' %}"
hx-delete="{% url 'split_sync_unlink' event_id=event.id link_id=link.id %}"
hx-trigger="confirmed"
data-title="{% translate 'Unlink this transaction?' %}"
data-text="{% translate 'The transaction itself is kept.' %}"
data-confirm-text="{% translate 'Unlink' %}"
_="install prompt_swal">
<i class="fa-solid fa-xmark fa-fw"></i>
</button>
</span>
{% endfor %}