From 5965b563171ca0948ea4ee65174571f28b7dc652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Fri, 30 Aug 2024 20:57:20 +0300 Subject: [PATCH] Add add item button to top of inventory view --- inventory-app/templates/inventory.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/inventory-app/templates/inventory.html b/inventory-app/templates/inventory.html index 93015ed..e98e0b3 100644 --- a/inventory-app/templates/inventory.html +++ b/inventory-app/templates/inventory.html @@ -3,6 +3,15 @@ {% block content %}
{% include "inventory_filter.html" %} + + {% macro add_item_button() -%} +

+ Add item +

+ {%- endmacro %} + + {{ add_item_button() }} + @@ -50,9 +59,7 @@ {% endfor %}
-

- Add item -

+ {{ add_item_button() }}