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