mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-12-03 13:44:20 +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
33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
{% extends 'extends/offcanvas.html' %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_filters %}
|
|
|
|
{% block title %}
|
|
{% if payment %}{% translate 'Edit payment' %}{% else %}{% translate 'Record payment' %}{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<form hx-post="{{ post_url }}"
|
|
hx-target="#generic-offcanvas"
|
|
hx-encoding="multipart/form-data"
|
|
novalidate>
|
|
{% if form.non_field_errors %}
|
|
<div class="alert alert-error mb-3">{{ form.non_field_errors }}</div>
|
|
{% endif %}
|
|
|
|
<div class="grid grid-cols-1 sm:grid-cols-2 gap-x-3">
|
|
{{ form.from_participant|as_crispy_field }}
|
|
{{ form.to_participant|as_crispy_field }}
|
|
{{ form.amount|as_crispy_field }}
|
|
{{ form.date|as_crispy_field }}
|
|
</div>
|
|
{{ form.notes|as_crispy_field }}
|
|
{{ form.attachments|as_crispy_field }}
|
|
{% include 'splits/fragments/attachments_existing.html' with item=payment %}
|
|
|
|
<button type="submit" class="btn btn-primary w-full mt-3">
|
|
{% if payment %}{% translate 'Update' %}{% else %}{% translate 'Record' %}{% endif %}
|
|
</button>
|
|
</form>
|
|
{% endblock %}
|