Hide tables on account form when empty
This commit is contained in:
parent
1536e7f674
commit
6b54cc7546
1 changed files with 8 additions and 4 deletions
|
@ -19,8 +19,12 @@
|
|||
{% csrf_token %}
|
||||
{{ form }}
|
||||
</form>
|
||||
<h2>{% translate "Statements" %}</h2>
|
||||
{% include "main/table/snapshot.html" %}
|
||||
<h2>{% translate "Transactions" %}</h2>
|
||||
{% include "main/table/transaction.html" %}
|
||||
{% if snapshots %}
|
||||
<h2>{% translate "Statements" %}</h2>
|
||||
{% include "main/table/snapshot.html" %}
|
||||
{% endif %}
|
||||
{% if transactions %}
|
||||
<h2>{% translate "Transactions" %}</h2>
|
||||
{% include "main/table/transaction.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue