Update invoice form

This commit is contained in:
Edgar P. Burkhart 2023-04-20 09:39:24 +02:00
parent 492e6e77d1
commit 3ca027afc5
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -13,11 +13,16 @@
type="text/css" />
{% endblock %}
{% block body %}
<h1>{{ form.instance }}</h1>
{% spaceless %}
<form id="transaction" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form }}
</form>
{% endspaceless %}
{% with invoice=form.instance %}
<h1>{{ invoice }}</h1>
<p>
<a href="{{ invoice.transaction.get_absolute_url }}">{{ invoice.transaction }}</a>
</p>
{% spaceless %}
<form id="transaction" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form }}
</form>
{% endspaceless %}
{% endwith %}
{% endblock %}