summaryrefslogtreecommitdiff
path: root/view/html/recipe-step.html
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-12 20:38:24 +0200
committerxengineering <me@xengineering.eu>2024-05-12 20:38:24 +0200
commitfec2fea87615e6ee3a6e73f7f98e021eee1b7098 (patch)
tree7eec27ba0c4a1cfaccc18e0f3018cece9d9b9a6f /view/html/recipe-step.html
parent64ece1c4455ed6f8e8be5cb8f060f14b6131823f (diff)
downloadceres-fec2fea87615e6ee3a6e73f7f98e021eee1b7098.tar
ceres-fec2fea87615e6ee3a6e73f7f98e021eee1b7098.tar.zst
ceres-fec2fea87615e6ee3a6e73f7f98e021eee1b7098.zip
view: Use HTML template to add recipe steps
This makes the JS function way simpler and removes a duplication of the step HTML code.
Diffstat (limited to 'view/html/recipe-step.html')
-rw-r--r--view/html/recipe-step.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/view/html/recipe-step.html b/view/html/recipe-step.html
index 96fbb48..8008d9c 100644
--- a/view/html/recipe-step.html
+++ b/view/html/recipe-step.html
@@ -1,6 +1,4 @@
-{{define "recipe-step"}}
- <section>
+{{define "recipe-step"}} <section>
<textarea rows="4" cols="50" placeholder="Step description">{{.Text}}</textarea>
<button type="button" onclick="parentNode.remove();">remove</button>
- </section>
-{{end}}
+ </section>{{end}}