From b1c3f04d6691e56a96200b473440d1b53223d813 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Mon, 11 Nov 2024 22:30:08 +0200 Subject: [PATCH] Add Category page --- src/routes/+layout.svelte | 4 + src/routes/category/+page.svelte | 176 +++++++++++++++++++++++++++++++ 2 files changed, 180 insertions(+) create mode 100644 src/routes/category/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 838709d..d4caf01 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -30,6 +30,10 @@ { Path: "/type", Name: "Types", + }, + { + Path: "/category", + Name: "Categories", } ] diff --git a/src/routes/category/+page.svelte b/src/routes/category/+page.svelte new file mode 100644 index 0000000..e748de9 --- /dev/null +++ b/src/routes/category/+page.svelte @@ -0,0 +1,176 @@ + + +{#if error} +

{error}

+{/if} + +
+

Manage Categories

+ +
+

+ {editingCategory ? "Edit Category" : "Add New Category"} +

+
+ + + + +
+ + {#if editingCategory} + + {/if} +
+
+
+ +

Categories List

+ +