step sections

This commit is contained in:
Emi Vasilek 2023-11-21 01:43:22 +01:00
parent 98c77cb102
commit e4890b6fd8
3 changed files with 48 additions and 11 deletions

View file

@ -24,11 +24,16 @@
{% endfor %}
{% if rec.price != None %}price: {{price(rec.price)}}{%endif%}
{% endif %}
{% if rec.steps|length != 0 %}
<h3>Steps</h3>
{% for step in rec.steps %}
<li>{{ step }}</li>
{% endfor %}
{% if rec.stepsections|length != 0 %}
<h3>Steps</h3>
{% for stepsection in rec.stepsections %}
{% if stepsection.title != "default" %}
<h4>{{stepsection.title}}</h4>
{% endif %}
{% for step in stepsection.steps %}
<li>{{ step }}</li>
{% endfor %}
{% endfor %}
{% endif %}
<hr>
{%- endmacro %}