add more info to pages

This commit is contained in:
fram3d 2023-08-12 13:16:33 +02:00
parent 1b02c7c3ab
commit 887fc9e508
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="ingredient_price">Cena</label> <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> </div>
<button class="btn btn-danger"> <button class="btn btn-danger">
Dodaj Sastojak Dodaj Sastojak

View File

@ -3,6 +3,7 @@
<label for="recipe_name">Naziv: </label> <label for="recipe_name">Naziv: </label>
<input class="form-control" type="text" name="recipe_name"> <input class="form-control" type="text" name="recipe_name">
</div> </div>
<p> Recept za 10 obroka <p>
{% for ingredient in data["ingredients"] %} {% for ingredient in data["ingredients"] %}
<div class="form-group"> <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"> <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">