Structure page content with sections

This commit is contained in:
Edgar P. Burkhart 2023-12-30 10:38:30 +01:00
parent 0e5b8ea85d
commit 7f3b9c7b5c
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
5 changed files with 66 additions and 40 deletions

View File

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

View File

@ -9,10 +9,14 @@
{% endblock %}
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %}
<section>
<h3>{% translate "Transactions" %}</h3>
{% include "transaction/transaction_table.html" %}
</section>
{% if history %}
<section>
<h3>{% translate "History" %}</h3>
{% include "history/plot.html" %}
</section>
{% endif %}
{% endblock %}

View File

@ -12,6 +12,7 @@
type="text/css">
{% endblock %}
{% block body %}
<section>
<h2>{% translate "Accounts" %}</h2>
<p>
{% for acc in accounts %}
@ -20,11 +21,15 @@
{% translate "No account" %}
{% endfor %}
</p>
</section>
{% if transactions %}
<section>
<h2>{% translate "Transactions" %}</h2>
{% include "transaction/transaction_table.html" %}
</section>
{% endif %}
{% if categories %}
<section>
<h2>{% translate "Categories" %}</h2>
{% spaceless %}
<p>
@ -35,13 +40,18 @@
{% endfor %}
</p>
{% endspaceless %}
</section>
{% endif %}
{% if statements %}
<section>
<h2>{% translate "Statements" %}</h2>
{% include "statement/statement_table.html" %}
</section>
{% endif %}
{% if history %}
<section>
<h2>{% translate "History" %}</h2>
{% include "history/plot.html" %}
</section>
{% endif %}
{% endblock %}

View File

@ -19,9 +19,13 @@
{% endblock %}
{% block tables %}
{% if not form.instance|adding %}
<section>
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions %}
</section>
<section>
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
{% include "transaction/transaction_table.html" %}
</section>
{% endif %}
{% endblock %}

View File

@ -16,7 +16,9 @@
{% endblock %}
{% block tables %}
{% if not form.instance|adding %}
<section>
<h3>{% translate "Invoices" %}</h3>
{% include "transaction/invoice_table.html" %}
</section>
{% endif %}
{% endblock %}