add more info to pages #1

Merged
svitvojimilioni merged 1 commits from fram3d/kuhkal:master into master 2023-08-12 11:30:40 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 887fc9e508 - Show all commits

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">