Moved views to adequate apps
This commit is contained in:
parent
62f360e77b
commit
f0a232f366
14 changed files with 21 additions and 19 deletions
|
@ -10,13 +10,15 @@
|
||||||
{% 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>
|
{% if statements %}
|
||||||
{% include "main/table/statement.html" %}
|
<h3>{% translate "Statements" %}</h3>
|
||||||
{% endif %}
|
{% include "statement/statement_table.html" %}
|
||||||
{% if transactions %}
|
{% endif %}
|
||||||
<h3>{% translate "Transactions" %}</h3>
|
{% if transactions %}
|
||||||
{% include "main/table/transaction.html" %}
|
<h3>{% translate "Transactions" %}</h3>
|
||||||
<h3>{% translate "History" %}</h3>
|
{% include "transaction/transaction_table.html" %}
|
||||||
{% include "main/plot/history.html" %}
|
<h3>{% translate "History" %}</h3>
|
||||||
|
{% include "transaction/history_plot.html" %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h3>{% translate "Transactions" %}</h3>
|
<h3>{% translate "Transactions" %}</h3>
|
||||||
{% include "main/table/transaction.html" %}
|
{% include "transaction/transaction_table.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if history.data %}
|
{% if history.data %}
|
||||||
<h3>{% translate "History" %}</h3>
|
<h3>{% translate "History" %}</h3>
|
||||||
{% include "main/plot/history.html" %}
|
{% include "transaction/history_plot.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h2>{% translate "Transactions" %}</h2>
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
{% include "main/table/transaction.html" %}
|
{% include "transaction/transaction_table.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if categories %}
|
{% if categories %}
|
||||||
<h2>{% translate "Categories" %}</h2>
|
<h2>{% translate "Categories" %}</h2>
|
||||||
|
@ -38,10 +38,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if statements %}
|
{% if statements %}
|
||||||
<h2>{% translate "Statements" %}</h2>
|
<h2>{% translate "Statements" %}</h2>
|
||||||
{% include "main/table/statement.html" %}
|
{% include "statement/statement_table.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if history.data %}
|
{% if history.data %}
|
||||||
<h2>{% translate "History" %}</h2>
|
<h2>{% translate "History" %}</h2>
|
||||||
{% include "main/plot/history.html" %}
|
{% include "transaction/history_plot.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,5 +3,5 @@ from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
|
|
||||||
class SearchForm(forms.Form):
|
class SearchForm(forms.Form):
|
||||||
template_name = "main/form/search.html"
|
template_name = "search/search_form.html"
|
||||||
search = forms.CharField(label=_("Search"), max_length=128)
|
search = forms.CharField(label=_("Search"), max_length=128)
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if categories %}
|
{% if categories %}
|
||||||
<h3>{% translate "Categories" %}</h3>
|
<h3>{% translate "Categories" %}</h3>
|
||||||
{% include "main/plot/category.html" %}
|
{% include "category/category_plot.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not form.instance|adding %}
|
{% if not form.instance|adding %}
|
||||||
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
|
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
|
||||||
{% include "main/table/transaction.html" %}
|
{% include "transaction/transaction_table.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if statements %}
|
{% if statements %}
|
||||||
{% include "main/list/pagination.html" %}
|
{% include "main/list/pagination.html" %}
|
||||||
{% include "main/table/statement.html" %}
|
{% include "statement/statement_table.html" %}
|
||||||
{% include "main/list/pagination.html" %}
|
{% include "main/list/pagination.html" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% translate "No statements to show" %}</p>
|
<p>{% translate "No statements to show" %}</p>
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
{% block tables %}
|
{% block tables %}
|
||||||
{% if not form.instance|adding %}
|
{% if not form.instance|adding %}
|
||||||
<h3>{% translate "Invoices" %}</h3>
|
<h3>{% translate "Invoices" %}</h3>
|
||||||
{% include "main/table/invoice.html" %}
|
{% include "transaction/invoice_table.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
{% include "main/list/pagination.html" %}
|
{% include "main/list/pagination.html" %}
|
||||||
{% include "main/table/transaction.html" %}
|
{% include "transaction/transaction_table.html" %}
|
||||||
{% include "main/list/pagination.html" %}
|
{% include "main/list/pagination.html" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% translate "No transactions to show" %}</p>
|
<p>{% translate "No transactions to show" %}</p>
|
||||||
|
|
Loading…
Reference in a new issue