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 %}
|
||||||
{% spaceless %}
|
<h1>{{ invoice }}</h1>
|
||||||
<form id="transaction" method="post" enctype="multipart/form-data">
|
<p>
|
||||||
{% csrf_token %}
|
<a href="{{ invoice.transaction.get_absolute_url }}">{{ invoice.transaction }}</a>
|
||||||
{{ form }}
|
</p>
|
||||||
</form>
|
{% spaceless %}
|
||||||
{% endspaceless %}
|
<form id="transaction" method="post" enctype="multipart/form-data">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form }}
|
||||||
|
</form>
|
||||||
|
{% endspaceless %}
|
||||||
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue