Compare commits

...

2 Commits

2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
</div>
<div class="form-group">
<label for="ingredient_price">Cena</label>
<input class="form-control" id="ingredient_price" type="number" required name="price" placeholder="Cena...">
<input class="form-control" id="ingredient_price" type="number" required name="price" placeholder="Cena po kg...">
</div>
<button class="btn btn-danger">
Dodaj Sastojak

View File

@ -3,6 +3,7 @@
<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">