mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-12-04 14:06:38 +01:00
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
17 lines
933 B
HTML
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 %}
|