From 038261e97cd1bdf17ae9e41cc098f2066d655f55 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 20 May 2022 21:59:10 +0200 Subject: [PATCH] Add form css for category --- nummi/main/templates/main/category.html | 27 +++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/nummi/main/templates/main/category.html b/nummi/main/templates/main/category.html index 7273947..a489c4a 100644 --- a/nummi/main/templates/main/category.html +++ b/nummi/main/templates/main/category.html @@ -1,18 +1,37 @@ {% extends "main/base.html" %} +{% load static %} + +{% block link %} +{{ block.super }} + +{% endblock %} {% block body %} -

{{ category.tree|join:" → " }}

+

{{ category }}

{% csrf_token %} - {{ form.as_p }} - + {% for field in form %} + {{ field.errors }} + + {{ field }} + {% endfor %} +
+ + +
{% if transactions %}

Transactions ({{ transactions|length }})

{% endif %} {% endblock %}