Empty tables are now visible

This commit is contained in:
Edgar P. Burkhart 2023-04-22 14:28:49 +02:00
parent a3f28631df
commit 2d7957b813
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
7 changed files with 45 additions and 32 deletions

View file

@ -10,13 +10,11 @@
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %}
{% if not form.instance|adding %}
{% if statements %}
<h3>{% translate "Statements" %}</h3>
{% include "statement/statement_table.html" %}
{% endif %}
{% if transactions %}
<h3>{% translate "Transactions" %}</h3>
{% include "transaction/transaction_table.html" %}
<h3>{% translate "Statements" %}</h3>
{% include "statement/statement_table.html" %}
<h3>{% translate "Transactions" %}</h3>
{% include "transaction/transaction_table.html" %}
{% if history.data %}
<h3>{% translate "History" %}</h3>
{% include "history/plot.html" %}
{% endif %}