Moved views to adequate apps

This commit is contained in:
Edgar P. Burkhart 2023-04-22 13:47:43 +02:00
parent 62f360e77b
commit f0a232f366
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
14 changed files with 21 additions and 19 deletions

View file

@ -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 %}
{% if statements %}
<h3>{% translate "Statements" %}</h3> <h3>{% translate "Statements" %}</h3>
{% include "main/table/statement.html" %} {% include "statement/statement_table.html" %}
{% endif %} {% endif %}
{% if transactions %} {% if transactions %}
<h3>{% translate "Transactions" %}</h3> <h3>{% translate "Transactions" %}</h3>
{% include "main/table/transaction.html" %} {% include "transaction/transaction_table.html" %}
<h3>{% translate "History" %}</h3> <h3>{% translate "History" %}</h3>
{% include "main/plot/history.html" %} {% include "transaction/history_plot.html" %}
{% endif %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View file

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

View file

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

View file

@ -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)

View file

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

View file

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

View file

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

View file

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