From 48107b918d9044011acfb172e266219cc766bd13 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 18 Mar 2020 11:36:39 +0100 Subject: [PATCH] added ingredient list page --- cookbook/templates/generic/list_template.html | 11 +++++++++++ cookbook/templates/index.html | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cookbook/templates/generic/list_template.html b/cookbook/templates/generic/list_template.html index 1a7cb0714..b330ef326 100644 --- a/cookbook/templates/generic/list_template.html +++ b/cookbook/templates/generic/list_template.html @@ -15,6 +15,17 @@ {% endif %} + + {% if filter %} +
+
+
+ {% csrf_token %} + {{ filter.form|crispy }} + +
+ {% endif %} + {% if import_btn %} {% trans 'Import all' %}
diff --git a/cookbook/templates/index.html b/cookbook/templates/index.html index cec692a60..fcb504d78 100644 --- a/cookbook/templates/index.html +++ b/cookbook/templates/index.html @@ -8,6 +8,12 @@ {% block extra_head %} {{ filter.form.media }} + + {% endblock %} {% block content %} @@ -24,8 +30,9 @@
-