Update invoice form
This commit is contained in:
parent
492e6e77d1
commit
3ca027afc5
1 changed files with 12 additions and 7 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue