show full recipe price every time with a clarification if necessary
This commit is contained in:
parent
8046f0d237
commit
88f801cadb
4 changed files with 40 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% macro ingredientpart(ing) -%}
|
||||
{% if recipe.price != None %}{{price(ing.price)}} {%endif%}
|
||||
{% if ing.price != None %}{{price(ing.price)}} {%endif%}
|
||||
{% if ing.amount != None %} {{ing.amount|amountprint}}
|
||||
{% if ing.unit != None %} {{ing.unit.name}}{% endif %}
|
||||
{%endif%}
|
||||
|
@ -29,7 +29,10 @@
|
|||
{% for ing in rec.ingredients %}
|
||||
<li>{{ingredient(ing)}}</li>
|
||||
{% endfor %}
|
||||
{% if rec.price != None %}price: {{price(rec.price)}}{%endif%}
|
||||
{% if rec.price != None %}
|
||||
<br>
|
||||
price: {{multiprice(rec.price)}}
|
||||
{%endif%}
|
||||
{% endif %}
|
||||
{% if rec.stepsections|length != 0 %}
|
||||
<h3>Steps</h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue