From 60b73d8546c29dd53c08b0f3e804a6cf1d8e54c8 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 19 May 2022 21:57:27 +0200 Subject: [PATCH] Add base template --- nummi/main/templates/main/base.html | 16 ++++++++++++++++ nummi/main/templates/main/index.html | 6 ++++++ nummi/main/templates/main/transaction.html | 8 ++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 nummi/main/templates/main/base.html diff --git a/nummi/main/templates/main/base.html b/nummi/main/templates/main/base.html new file mode 100644 index 0000000..6f2e820 --- /dev/null +++ b/nummi/main/templates/main/base.html @@ -0,0 +1,16 @@ + + + + + + + {% block title %}Nummi{% endblock %} + + {% block link %} + {% endblock %} + + + {% block body %} + {% endblock %} + + diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html index 686d94e..1566229 100644 --- a/nummi/main/templates/main/index.html +++ b/nummi/main/templates/main/index.html @@ -1,3 +1,8 @@ +{% extends "main/base.html" %} + +{% block body %} +

Nummi

+ Add transaction {% if transactions %} @@ -7,3 +12,4 @@ {% endfor %} {% endif %} +{% endblock %} diff --git a/nummi/main/templates/main/transaction.html b/nummi/main/templates/main/transaction.html index efec694..74996a1 100644 --- a/nummi/main/templates/main/transaction.html +++ b/nummi/main/templates/main/transaction.html @@ -1,9 +1,12 @@ +{% extends "main/base.html" %} + +{% block body %} Home

{{ transaction }}

{% csrf_token %} - {{ form }} + {{ form.as_p }}
@@ -16,6 +19,7 @@ x {% endfor %} -
  • {{ invoice_form }}
  • +
  • {{ invoice_form.as_p }}
  • +{% endblock %}