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" /> type="text/css" />
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>{{ form.instance }}</h1> {% with invoice=form.instance %}
<h1>{{ invoice }}</h1>
<p>
<a href="{{ invoice.transaction.get_absolute_url }}">{{ invoice.transaction }}</a>
</p>
{% spaceless %} {% spaceless %}
<form id="transaction" method="post" enctype="multipart/form-data"> <form id="transaction" method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
</form> </form>
{% endspaceless %} {% endspaceless %}
{% endwith %}
{% endblock %} {% endblock %}