diff options
author | xengineering <me@xengineering.eu> | 2024-05-12 20:38:24 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-12 20:38:24 +0200 |
commit | fec2fea87615e6ee3a6e73f7f98e021eee1b7098 (patch) | |
tree | 7eec27ba0c4a1cfaccc18e0f3018cece9d9b9a6f /view/html/recipe-step.html | |
parent | 64ece1c4455ed6f8e8be5cb8f060f14b6131823f (diff) | |
download | ceres-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.html | 6 |
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}} |