Structure page content with sections
This commit is contained in:
parent
0e5b8ea85d
commit
7f3b9c7b5c
5 changed files with 66 additions and 40 deletions
|
@ -10,13 +10,19 @@
|
||||||
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
|
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if not form.instance|adding %}
|
{% if not form.instance|adding %}
|
||||||
<h3>{% translate "Statements" %}</h3>
|
<section>
|
||||||
{% include "statement/statement_table.html" %}
|
<h3>{% translate "Statements" %}</h3>
|
||||||
<h3>{% translate "Transactions" %}</h3>
|
{% include "statement/statement_table.html" %}
|
||||||
{% include "transaction/transaction_table.html" %}
|
</section>
|
||||||
|
<section>
|
||||||
|
<h3>{% translate "Transactions" %}</h3>
|
||||||
|
{% include "transaction/transaction_table.html" %}
|
||||||
|
</section>
|
||||||
{% if history %}
|
{% if history %}
|
||||||
<h3>{% translate "History" %}</h3>
|
<section>
|
||||||
{% include "history/plot.html" %}
|
<h3>{% translate "History" %}</h3>
|
||||||
|
{% include "history/plot.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -9,10 +9,14 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
|
{% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
<h3>{% translate "Transactions" %}</h3>
|
<section>
|
||||||
{% include "transaction/transaction_table.html" %}
|
<h3>{% translate "Transactions" %}</h3>
|
||||||
|
{% include "transaction/transaction_table.html" %}
|
||||||
|
</section>
|
||||||
{% if history %}
|
{% if history %}
|
||||||
<h3>{% translate "History" %}</h3>
|
<section>
|
||||||
{% include "history/plot.html" %}
|
<h3>{% translate "History" %}</h3>
|
||||||
|
{% include "history/plot.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -12,36 +12,46 @@
|
||||||
type="text/css">
|
type="text/css">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>{% translate "Accounts" %}</h2>
|
<section>
|
||||||
<p>
|
<h2>{% translate "Accounts" %}</h2>
|
||||||
{% for acc in accounts %}
|
<p>
|
||||||
<a class="big-link" href="{{ acc.get_absolute_url }}">{{ acc.icon|remix }}{{ acc }}</a>
|
{% for acc in accounts %}
|
||||||
{% empty %}
|
<a class="big-link" href="{{ acc.get_absolute_url }}">{{ acc.icon|remix }}{{ acc }}</a>
|
||||||
{% translate "No account" %}
|
{% empty %}
|
||||||
{% endfor %}
|
{% translate "No account" %}
|
||||||
</p>
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h2>{% translate "Transactions" %}</h2>
|
<section>
|
||||||
{% include "transaction/transaction_table.html" %}
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
|
{% include "transaction/transaction_table.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if categories %}
|
{% if categories %}
|
||||||
<h2>{% translate "Categories" %}</h2>
|
<section>
|
||||||
{% spaceless %}
|
<h2>{% translate "Categories" %}</h2>
|
||||||
<p>
|
{% spaceless %}
|
||||||
{% for cat in categories %}
|
<p>
|
||||||
<a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a>
|
{% for cat in categories %}
|
||||||
{% empty %}
|
<a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a>
|
||||||
{% translate "No category" %}
|
{% empty %}
|
||||||
{% endfor %}
|
{% translate "No category" %}
|
||||||
</p>
|
{% endfor %}
|
||||||
{% endspaceless %}
|
</p>
|
||||||
|
{% endspaceless %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if statements %}
|
{% if statements %}
|
||||||
<h2>{% translate "Statements" %}</h2>
|
<section>
|
||||||
{% include "statement/statement_table.html" %}
|
<h2>{% translate "Statements" %}</h2>
|
||||||
|
{% include "statement/statement_table.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if history %}
|
{% if history %}
|
||||||
<h2>{% translate "History" %}</h2>
|
<section>
|
||||||
{% include "history/plot.html" %}
|
<h2>{% translate "History" %}</h2>
|
||||||
|
{% include "history/plot.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -19,9 +19,13 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if not form.instance|adding %}
|
{% if not form.instance|adding %}
|
||||||
<h3>{% translate "Categories" %}</h3>
|
<section>
|
||||||
{% category_plot transactions %}
|
<h3>{% translate "Categories" %}</h3>
|
||||||
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
|
{% category_plot transactions %}
|
||||||
{% include "transaction/transaction_table.html" %}
|
</section>
|
||||||
|
<section>
|
||||||
|
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
|
||||||
|
{% include "transaction/transaction_table.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -16,7 +16,9 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if not form.instance|adding %}
|
{% if not form.instance|adding %}
|
||||||
<h3>{% translate "Invoices" %}</h3>
|
<section>
|
||||||
{% include "transaction/invoice_table.html" %}
|
<h3>{% translate "Invoices" %}</h3>
|
||||||
|
{% include "transaction/invoice_table.html" %}
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue