diff --git a/nummi/category/templates/category/category_plot.html b/nummi/category/templates/category/category_plot.html index 91d919e..ca855a0 100644 --- a/nummi/category/templates/category/category_plot.html +++ b/nummi/category/templates/category/category_plot.html @@ -34,7 +34,9 @@ {{ cat.sum_m|pmrvalue }} -
+ {% if cat.sum_m %} +
+ {% endif %} {% if cat.sum < 0 %}
{{ cat.sum|pmrvalue }} @@ -42,7 +44,9 @@ {% endif %} -
+ {% if cat.sum_p %} +
+ {% endif %} {% if cat.sum > 0 %}
{{ cat.sum|pmrvalue }} diff --git a/nummi/main/templates/main/form/base.html b/nummi/main/templates/main/form/base.html index e2b273e..fc9a4e3 100644 --- a/nummi/main/templates/main/form/base.html +++ b/nummi/main/templates/main/form/base.html @@ -30,7 +30,7 @@ {% block pre %}{% endblock %}
{% csrf_token %} - {% if instance|adding %}{% endif %} + {% if instance|adding %}{% endif %} {{ form }}
{% block tables %}{% endblock %} diff --git a/nummi/main/templates/main/form/form_base.html b/nummi/main/templates/main/form/form_base.html index 7fb6952..4d61bf7 100644 --- a/nummi/main/templates/main/form/form_base.html +++ b/nummi/main/templates/main/form/form_base.html @@ -29,11 +29,11 @@ {% if not form.instance|adding %} {% translate "Delete" %} {% endif %} - + {% if form.instance|adding %} - + {% else %} - + {% endif %} {% endblock %} diff --git a/nummi/main/templates/main/form/login.html b/nummi/main/templates/main/form/login.html index 8a74bc7..38e1726 100644 --- a/nummi/main/templates/main/form/login.html +++ b/nummi/main/templates/main/form/login.html @@ -1,7 +1,7 @@ {% extends "main/form/form_base.html" %} {% load i18n %} {% block buttons %} - - - + + + {% endblock %} diff --git a/nummi/main/templates/main/login.html b/nummi/main/templates/main/login.html index 83258a1..0182a8c 100644 --- a/nummi/main/templates/main/login.html +++ b/nummi/main/templates/main/login.html @@ -1,4 +1,5 @@ {% extends "main/base.html" %} +{% load main_extras %} {% load static %} {% load i18n %} {% block link %} diff --git a/nummi/transaction/templates/transaction/invoice_table.html b/nummi/transaction/templates/transaction/invoice_table.html index 82a4406..444509c 100644 --- a/nummi/transaction/templates/transaction/invoice_table.html +++ b/nummi/transaction/templates/transaction/invoice_table.html @@ -6,9 +6,11 @@ - {% translate "Name" %} - {% translate "File" %} - {% translate "Delete" %} + + {% translate "Name" %} + {% translate "File" %} + {% translate "Delete" %} + {% for invoice in transaction.invoices %} @@ -20,21 +22,21 @@ {% translate "File" %} [{{ invoice.file|extension }}] - {% translate "Delete" %} - - - {% empty %} - - {% translate "No invoice" %} - - {% endfor %} - - - - - {% translate "Create invoice" %} + {% translate "Delete" %} - - -
+ {% empty %} + + {% translate "No invoice" %} + + {% endfor %} + + + + + {% translate "Create invoice" %} + + + + +
diff --git a/nummi/transaction/templates/transaction/transaction_archive_month.html b/nummi/transaction/templates/transaction/transaction_archive_month.html index 0b72f35..3b71c4e 100644 --- a/nummi/transaction/templates/transaction/transaction_archive_month.html +++ b/nummi/transaction/templates/transaction/transaction_archive_month.html @@ -1,5 +1,5 @@ {% extends "transaction/transaction_list.html" %} -{% load i18n static category %} +{% load i18n main_extras static category %} {% block link %} {{ block.super }} {% css "main/css/plot.css" %}