Renamed the template form-record-transfer to record_form-transfer, and form-record-non-transfer to record_form-non-transfer in the accounting application.
This commit is contained in:
parent
19c1e8b586
commit
b84c9306cb
@ -72,7 +72,7 @@ First written: 2020/7/23
|
|||||||
<ul id="debit-records" class="list-group">
|
<ul id="debit-records" class="list-group">
|
||||||
{% for record in form.debit_records %}
|
{% for record in form.debit_records %}
|
||||||
{% with record_type="debit" no=forloop.counter order=forloop.counter %}
|
{% with record_type="debit" no=forloop.counter order=forloop.counter %}
|
||||||
{% include "accounting/include/form-record-non-transfer.html" %}
|
{% include "accounting/include/record_form-non-transfer.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -72,7 +72,7 @@ First written: 2020/7/23
|
|||||||
<ul id="credit-records" class="list-group">
|
<ul id="credit-records" class="list-group">
|
||||||
{% for record in form.credit_records %}
|
{% for record in form.credit_records %}
|
||||||
{% with record_type="credit" no=forloop.counter order=forloop.counter %}
|
{% with record_type="credit" no=forloop.counter order=forloop.counter %}
|
||||||
{% include "accounting/include/form-record-non-transfer.html" %}
|
{% include "accounting/include/record_form-non-transfer.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -74,7 +74,7 @@ First written: 2020/7/23
|
|||||||
<ul id="debit-records" class="list-group">
|
<ul id="debit-records" class="list-group">
|
||||||
{% for record in form.debit_records %}
|
{% for record in form.debit_records %}
|
||||||
{% with record_type="debit" no=forloop.counter order=forloop.counter %}
|
{% with record_type="debit" no=forloop.counter order=forloop.counter %}
|
||||||
{% include "accounting/include/form-record-transfer.html" %}
|
{% include "accounting/include/record_form-transfer.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -100,7 +100,7 @@ First written: 2020/7/23
|
|||||||
<ul id="credit-records" class="list-group">
|
<ul id="credit-records" class="list-group">
|
||||||
{% for record in form.credit_records %}
|
{% for record in form.credit_records %}
|
||||||
{% with record_type="credit" no=forloop.counter order=forloop.counter %}
|
{% with record_type="credit" no=forloop.counter order=forloop.counter %}
|
||||||
{% include "accounting/include/form-record-transfer.html" %}
|
{% include "accounting/include/record_form-transfer.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -845,11 +845,11 @@ def txn_form(request, txn_type, txn=None):
|
|||||||
"order": ""}
|
"order": ""}
|
||||||
if txn_type == "transfer":
|
if txn_type == "transfer":
|
||||||
new_record_template = json.dumps(render_to_string(
|
new_record_template = json.dumps(render_to_string(
|
||||||
"accounting/include/form-record-transfer.html",
|
"accounting/include/record_form-transfer.html",
|
||||||
new_record_context))
|
new_record_context))
|
||||||
else:
|
else:
|
||||||
new_record_template = json.dumps(render_to_string(
|
new_record_template = json.dumps(render_to_string(
|
||||||
"accounting/include/form-record-non-transfer.html",
|
"accounting/include/record_form-non-transfer.html",
|
||||||
new_record_context))
|
new_record_context))
|
||||||
return render(request, F"accounting/transaction_form-{txn_type}.html", {
|
return render(request, F"accounting/transaction_form-{txn_type}.html", {
|
||||||
"form": form,
|
"form": form,
|
||||||
|
Loading…
Reference in New Issue
Block a user