Add a way to delete recipe
This commit is contained in:
parent
5ce3391466
commit
31bc31035a
10 changed files with 247 additions and 175 deletions
|
|
@ -20,6 +20,19 @@
|
|||
<textarea
|
||||
id="text-area-description">{{ recipe.description }}</textarea>
|
||||
|
||||
<label for="input-servings">Servings</label>
|
||||
<input
|
||||
id="input-servings"
|
||||
type="number"
|
||||
step="1" min="1" max="100"
|
||||
value="
|
||||
{% match recipe.servings %}
|
||||
{% when Some with (s) %}
|
||||
{{ s }}
|
||||
{% when None %}
|
||||
|
||||
{% endmatch %}"/>
|
||||
|
||||
<label for="input-estimated-time">Estimated time [min]</label>
|
||||
<input
|
||||
id="input-estimated-time"
|
||||
|
|
@ -30,7 +43,7 @@
|
|||
{% when Some with (t) %}
|
||||
{{ t }}
|
||||
{% when None %}
|
||||
0
|
||||
|
||||
{% endmatch %}"/>
|
||||
|
||||
<label for="select-difficulty">Difficulty</label>
|
||||
|
|
@ -61,6 +74,8 @@
|
|||
>
|
||||
<label for="input-is-published">Is published</label>
|
||||
|
||||
<input id="input-delete" type="button" value="Delete recipe" />
|
||||
|
||||
<div id="groups-container">
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue