summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-15 19:39:17 +0200
committerxengineering <me@xengineering.eu>2024-05-15 19:39:17 +0200
commit34880a0194f66e2b1808b45abfb01497d4816aaf (patch)
tree9b92f22b9a00ddf5995a8f5d7a34b287db60fdab
parent29c8c305c52b97248e505cdfc6b86e96f57d0a53 (diff)
downloadceres-34880a0194f66e2b1808b45abfb01497d4816aaf.tar
ceres-34880a0194f66e2b1808b45abfb01497d4816aaf.tar.zst
ceres-34880a0194f66e2b1808b45abfb01497d4816aaf.zip
view: Require text for steps
It does not make sense to add empty steps.
-rw-r--r--view/html/recipe-step.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/html/recipe-step.html b/view/html/recipe-step.html
index 13c0bb7..13c0de0 100644
--- a/view/html/recipe-step.html
+++ b/view/html/recipe-step.html
@@ -1,5 +1,5 @@
{{define "recipe-step"}} <section>
- <textarea rows="4" cols="50" placeholder="Step description">{{.Text}}</textarea>
+ <textarea rows="4" cols="50" placeholder="Step description" required>{{.Text}}</textarea>
<div class="ingredients">{{range .Ingredients}}
{{ template "recipe-ingredient" . }}{{end}}
</div>