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 %}
|
{% csrf_token %}
|
||||||
{{ form }}
|
{{ form }}
|
||||||
</form>
|
</form>
|
||||||
<h2>{% translate "Statements" %}</h2>
|
{% if snapshots %}
|
||||||
{% include "main/table/snapshot.html" %}
|
<h2>{% translate "Statements" %}</h2>
|
||||||
<h2>{% translate "Transactions" %}</h2>
|
{% include "main/table/snapshot.html" %}
|
||||||
{% include "main/table/transaction.html" %}
|
{% endif %}
|
||||||
|
{% if transactions %}
|
||||||
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
|
{% include "main/table/transaction.html" %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue