From 3ca027afc596e9b4f9f0a589f9c81773bc4eb1ed Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 20 Apr 2023 09:39:24 +0200 Subject: [PATCH] Update invoice form --- nummi/main/templates/main/form/invoice.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/nummi/main/templates/main/form/invoice.html b/nummi/main/templates/main/form/invoice.html index a0fb629..26c9dd1 100644 --- a/nummi/main/templates/main/form/invoice.html +++ b/nummi/main/templates/main/form/invoice.html @@ -13,11 +13,16 @@ type="text/css" /> {% endblock %} {% block body %} -

{{ form.instance }}

- {% spaceless %} -
- {% csrf_token %} - {{ form }} -
- {% endspaceless %} + {% with invoice=form.instance %} +

{{ invoice }}

+

+ {{ invoice.transaction }} +

+ {% spaceless %} +
+ {% csrf_token %} + {{ form }} +
+ {% endspaceless %} + {% endwith %} {% endblock %}