From 92c63ce29020399dbdcd7ad9f68d66d9bfdd0348 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Mon, 11 Nov 2024 21:28:30 +0200 Subject: [PATCH] Add type page --- src/routes/+layout.svelte | 4 + src/routes/type/+page.svelte | 172 +++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 src/routes/type/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3cf4ce2..838709d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -26,6 +26,10 @@ { Path: "/card", Name: "Cards", + }, + { + Path: "/type", + Name: "Types", } ] diff --git a/src/routes/type/+page.svelte b/src/routes/type/+page.svelte new file mode 100644 index 0000000..7da29c6 --- /dev/null +++ b/src/routes/type/+page.svelte @@ -0,0 +1,172 @@ + + +{#if error} +

{error}

+{/if} + +
+

Manage Types

+ +
+

+ {editingType ? "Edit Type" : "Add New Type"} +

+
+ + + +
+ + {#if editingType} + + {/if} +
+
+
+ +

Types List

+ +