From bef1ebdae7763774a3d970013858617019337f41 Mon Sep 17 00:00:00 2001 From: Wes Holland Date: Sat, 22 Feb 2025 19:41:04 -0600 Subject: [PATCH] Move Sidebar logic to main --- .idea/.gitignore | 5 + .idea/dataSources.xml | 15 -- .idea/inspectionProfiles/Project_Default.xml | 20 --- .idea/sqldialects.xml | 7 - templates/catalog/catalog.html | 145 +++++++++---------- templates/item/item.html | 66 ++++----- templates/main.html | 121 ++++++++++++---- 7 files changed, 187 insertions(+), 192 deletions(-) delete mode 100644 .idea/dataSources.xml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/sqldialects.xml diff --git a/.idea/.gitignore b/.idea/.gitignore index 13566b8..111b3d7 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -6,3 +6,8 @@ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml +/dataSources.xml +/inspectionProfiles/ +/sqldialects.xml +/codeStyles/ +/prettier.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index 76909c1..0000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:inventory-app.db - $ProjectFileDir$ - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 3baa0fe..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml deleted file mode 100644 index 8748bad..0000000 --- a/.idea/sqldialects.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/templates/catalog/catalog.html b/templates/catalog/catalog.html index a301c75..5e9b303 100644 --- a/templates/catalog/catalog.html +++ b/templates/catalog/catalog.html @@ -3,92 +3,77 @@ {% block content %} -
-
-
-
-
-
-
-

Add Item

-
- -
-
-
+ +
+
-
- -
-
-
- -
- -
- -
-
- -
-
- -
- {% include "catalog-item-table.html" %} +
+
+
+ {% include "catalog-item-table.html" %} +
{% endblock %} + +{% block sidebar_title %} +

Add Item

+{% endblock %} + +{% block sidebar_content %} +
+
+
+{% endblock %} diff --git a/templates/item/item.html b/templates/item/item.html index 1073399..d195b07 100644 --- a/templates/item/item.html +++ b/templates/item/item.html @@ -4,44 +4,6 @@ {% block content %} -
-
-
-
-
-
-
-

Negative Adjustment

-

Positive Adjustment

-
- -
-
-
-
-
-
-
-
-
-

@@ -65,13 +27,13 @@
@@ -90,3 +52,27 @@
{% endblock %} + +{% block sidebar_title %} +

Negative Adjustment

+

Positive Adjustment

+{% endblock %} + +{% block sidebar_content %} +
+
+
+
+
+
+
+
+{% endblock %} diff --git a/templates/main.html b/templates/main.html index 3883f4e..8b0d50d 100644 --- a/templates/main.html +++ b/templates/main.html @@ -66,7 +66,98 @@
+ +
+ +
+ + +
+ +
+ +
+ +
+
+
+ {% block sidebar_title %} +

None

+ {% endblock %} +
+ +
+ {% block sidebar_content %} +

None

+ {% endblock %} +
+ + + {% block content %} +

Content Missing

+ {% endblock %} +
+ -
- -
- - {% block content %} -

Content Missing

- {% endblock %} -