Hide tables on account form when empty

This commit is contained in:
Edgar P. Burkhart 2022-12-31 11:39:39 +01:00
parent 1536e7f674
commit 6b54cc7546
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -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 %}