From 1dad22d3e45d6506c8624e3a7111240fcc4ab786 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 15 May 2022 13:16:37 +0200 Subject: Templates. --- app/templates/modules/add-item.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/templates/modules/add-item.html (limited to 'app/templates/modules/add-item.html') diff --git a/app/templates/modules/add-item.html b/app/templates/modules/add-item.html new file mode 100644 index 0000000..356ce9f --- /dev/null +++ b/app/templates/modules/add-item.html @@ -0,0 +1,19 @@ +{# -*- mode: web; -*- #} + +{% extends "base.html" %} + + +{% block title %}Add {{ table }} item{% endblock %} +{% block content %} + +
+
+ Add a new item to our {{ table }} table. + {% for field in form %} + {{ field.label() }} + {{ field() }}
+ {% endfor %} +
+
+ +{% endblock %} -- cgit v1.2.3