14 lines
664 B
HTML
Executable File
14 lines
664 B
HTML
Executable File
<form method="POST">
|
|
<div class="form-group">
|
|
<label for="recipe_name">Naziv: </label>
|
|
<input class="form-control" type="text" name="recipe_name">
|
|
</div>
|
|
<p> Recept za 10 obroka <p>
|
|
{% for ingredient in data["ingredients"] %}
|
|
<div class="form-group">
|
|
<input class="form-check-input"type="checkbox" id="{{ingredient.name}}" name="ingredients" value="{{ingredient.id}}"> <label class="form-check-label" for="{{ingredient.name}}">{{ingredient.name}}</label> <input class="form-control" step="0.01" type="number" name="{{ingredient.id}}_ammount" placeholder="kg/L">
|
|
</div>
|
|
{% endfor %}
|
|
<button class="btn btn-danger">Dodaj recept</button>
|
|
</form>
|