blob: 13c0bb7340efb6b460c26ad6f6ca016d240a70a8 (
plain)
1
2
3
4
5
6
7
8
|
{{define "recipe-step"}} <section>
<textarea rows="4" cols="50" placeholder="Step description">{{.Text}}</textarea>
<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}}
|