Fixed the title of the account form in the accounting application.

This commit is contained in:
依瑪貓 2020-08-09 19:13:02 +08:00
parent 4266e43388
commit 0ea535d31d

View File

@ -26,7 +26,11 @@ First written: 2020/8/8
{% load accounting %} {% load accounting %}
{% block settings %} {% block settings %}
{% setvar "title" account %} {% if form.account %}
{% setvar "title" form.account %}
{% else %}
{% setvar "title" _("Add a New Account") %}
{% endif %}
{% static "accounting/js/account-form.js" as file %}{% add_js file %} {% static "accounting/js/account-form.js" as file %}{% add_js file %}
{% endblock %} {% endblock %}