From 1f37408776828ecdfdd2bebf010e29f4b608f6c4 Mon Sep 17 00:00:00 2001 From: June Date: Mon, 17 Nov 2025 17:35:06 +1300 Subject: [PATCH] Add edit page functionality but not ui yet --- web/src/pages/recipe/[id]/edit.astro | 104 ++++++++++++++++++ .../recipe/{[id].astro => [id]/index.astro} | 0 2 files changed, 104 insertions(+) create mode 100644 web/src/pages/recipe/[id]/edit.astro rename web/src/pages/recipe/{[id].astro => [id]/index.astro} (100%) diff --git a/web/src/pages/recipe/[id]/edit.astro b/web/src/pages/recipe/[id]/edit.astro new file mode 100644 index 0000000..672288b --- /dev/null +++ b/web/src/pages/recipe/[id]/edit.astro @@ -0,0 +1,104 @@ +--- +import Base from "@layout/Base"; +import { authPB } from "@data/pb"; + +const pb = await authPB() +const { id } = Astro.params + +const rec = await pb.collection('recipes').getOne(id as string) + +const templateHeaders = rec.cooklang +const recipeId = id as string +--- + + + + +
+
+ +
+

Edit Recipe

+ +
+ +
+ +
+ + + +
+ +
+ + + +
+ +
+ +

Recipie uses Cooklang. Visit the documentation to learn more.

+
+
+ \ No newline at end of file diff --git a/web/src/pages/recipe/[id].astro b/web/src/pages/recipe/[id]/index.astro similarity index 100% rename from web/src/pages/recipe/[id].astro rename to web/src/pages/recipe/[id]/index.astro