Renamed the templates edit.html to form.html, and show.html to view.html in the accounting application.

This commit is contained in:
依瑪貓 2020-07-28 03:09:53 +08:00
parent b11348b276
commit 78cac61cd5
7 changed files with 2 additions and 2 deletions

View File

@ -855,7 +855,7 @@ def transaction_show(request, type, transaction):
Returns:
HttpResponse: The response.
"""
return render(request, F"accounting/transactions/{type}/show.html", {
return render(request, F"accounting/transactions/{type}/view.html", {
"item": transaction,
})
@ -879,6 +879,6 @@ def transaction_create(request, type, transaction=None):
transaction.records.append(Record(ord=1, is_credit=False))
if len(transaction.credit_records) == 0:
transaction.records.append(Record(ord=1, is_credit=True))
return render(request, F"accounting/transactions/{type}/edit.html", {
return render(request, F"accounting/transactions/{type}/form.html", {
"item": transaction,
})