From 9005de11ef8b7cf32cc8503e8b5f134eca47b4fb Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 14 Jan 2023 18:07:47 +0100 Subject: Add new recipe edit page Recipes should be completely editable and removable. Thus this edit page was added. --- data/templates/recipe.html | 42 ++--------------------------------------- data/templates/recipe_edit.html | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 40 deletions(-) create mode 100644 data/templates/recipe_edit.html (limited to 'data/templates') diff --git a/data/templates/recipe.html b/data/templates/recipe.html index 536cac9..a35cc49 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -25,51 +25,13 @@
Recipe image

Recipe description

- - - - -
- {{.RenderedDescriptionMarkdown}} -
+ + {{.RenderedDescriptionMarkdown}}
- - - - diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html new file mode 100644 index 0000000..b5c9672 --- /dev/null +++ b/data/templates/recipe_edit.html @@ -0,0 +1,33 @@ + + + + + + + Recipes + + + + + + + + +
+

Edit a recipe

+
+ +
+

ID: {{.Id}}

+
+
+
+ +
+
{{.DescriptionMarkdown}}
+ +
+ +
+ + -- cgit v1.2.3-70-g09d2