init
This commit is contained in:
10
kuhkal/templates/includes/new_recipe_form.html
Normal file
10
kuhkal/templates/includes/new_recipe_form.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<form method="POST">
|
||||
<label for="recipe_name">Naziv: </label>
|
||||
<input type="text" name="recipe_name">
|
||||
<br>
|
||||
{% for ingredient in data["ingredients"] %}
|
||||
<input type="checkbox" id="{{ingredient.name}}" name="ingredients" value="{{ingredient.id}}"> <label for="{{ingredient.name}}">{{ingredient.name}}</label> <input step="0.01"type="number" name="{{ingredient.id}}_ammount" placeholder="kg/L">
|
||||
<br>
|
||||
{% endfor %}
|
||||
<button>Dodaj recept</button>
|
||||
</form>
|
Reference in New Issue
Block a user