diff options
author | xengineering <me@xengineering.eu> | 2024-05-14 20:14:42 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-14 20:43:41 +0200 |
commit | a87128138bdb301ede64049ec5068e47abb5c839 (patch) | |
tree | 72495022f7237458f4a24122ffd13dd872263698 /view/html/recipe-step.html | |
parent | b5b72880a0b6e9f188b532c9b2ad360ff1dab2ea (diff) | |
download | ceres-a87128138bdb301ede64049ec5068e47abb5c839.tar ceres-a87128138bdb301ede64049ec5068e47abb5c839.tar.zst ceres-a87128138bdb301ede64049ec5068e47abb5c839.zip |
view: Complete ingredient editing
Diffstat (limited to 'view/html/recipe-step.html')
-rw-r--r-- | view/html/recipe-step.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/html/recipe-step.html b/view/html/recipe-step.html index 3fd22a7..13c0bb7 100644 --- a/view/html/recipe-step.html +++ b/view/html/recipe-step.html @@ -1,7 +1,8 @@ {{define "recipe-step"}} <section> <textarea rows="4" cols="50" placeholder="Step description">{{.Text}}</textarea> - <div>{{range .Ingredients}} + <div class="ingredients">{{range .Ingredients}} {{ template "recipe-ingredient" . }}{{end}} </div> + <button type="button" onclick="addNewIngredient(this);">add ingredient</button> <button type="button" onclick="parentNode.remove();">remove step</button> </section>{{end}} |