Files
WYGIWYH/app/templates/splits/fragments/attachments_existing.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

28 lines
1.2 KiB
HTML

{% load i18n %}
{% load split_urls %}
{% if item and item.attachments.all %}
<div class="flex flex-wrap gap-2 mb-3">
{% for att in item.attachments.all %}
<span class="badge badge-outline gap-1">
<a href="{% split_portal_url urls 'attachment_download_name' attachment_id=att.id %}"
target="_blank" rel="noopener" class="no-underline hover:underline">
<i class="fa-solid fa-paperclip fa-fw"></i>{{ att.original_name }}
</a>
<button type="button"
class="text-error cursor-pointer"
aria-label="{% translate 'Delete' %}"
hx-delete="{% split_portal_url urls 'attachment_delete_name' attachment_id=att.id %}"
hx-trigger="confirmed"
hx-swap="none"
data-title="{% translate 'Are you sure?' %}"
data-text="{% translate "You won't be able to revert this!" %}"
data-confirm-text="{% translate 'Yes, delete it!' %}"
_="install prompt_swal
on htmx:afterRequest[detail.successful] remove closest .badge">
<i class="fa-solid fa-xmark fa-fw"></i>
</button>
</span>
{% endfor %}
</div>
{% endif %}