Added the add_css and add_js template tags to add local CSS and JavaScript files to the base template in the Mia core application, and applied them in the templates of the accounting application.

This commit is contained in:
2020-08-03 00:20:26 +08:00
parent cbac2ba61e
commit 841fbc1223
10 changed files with 45 additions and 18 deletions

View File

@ -30,8 +30,7 @@ First written: 2020/7/16
{% blocktrans asvar title with account=account.title|title period=period.description context "Accounting|" %}Ledger for {{ account }} in {{ period }}{% endblocktrans %}
{% setvar "title" title %}
{% setvar "use_period_chooser" True %}
{% static "accounting/css/report.css" as css %}
{% setvar "css" css %}
{% static "accounting/css/report.css" as file %}{% add_css file %}
{% endblock %}
{% block content %}