webseite/templates/zutaten/zutat_notes.html
2021-08-08 21:23:11 +02:00

56 lines
2.2 KiB
HTML

{#-
Render die Notizen und Angaben zur Verarbeitung der Rezepte
-#}
{%- if child.ingredients is defined and child.ingredients != "" %}
{%- if child.ingredients.blocks != [] -%}
{{- '\n ' -}} <div class="content__box">
{{- '\n ' -}} <div class="content__inner_box">
{{- '\n ' -}} <h2>Hinweise zu den Zutaten</h2>
{%- for ing in child.ingredients.blocks %}
{%- if ing.ingredient is defined and ing.ingredient != "" -%}
{#-
Verarbeitungshinweise der Zutat
-#}
{%- if ing.processing is defined and ing.processing != "" -%}
{%- if ing.processing.blocks != [] -%}
{%- for prc in ing.processing.blocks -%}
{%- if not prc.short|default(false) -%}
{%- if loop.index == 1 -%}
{{- '\n ' -}} <h3 id="processing_{{- ing.ingredient | string -}}">Verarbeitung von {{ ing.ingredient }}:</h3>
{{- '\n ' -}} <ul>
{%- endif -%}
{{- '\n ' -}} <li>
{{- '\n ' -}}
<span class="ingredientprocessing">{{ prc.process }}</span>
{{- '\n ' -}} </li>
{%- endif -%}
{%- endfor -%}
{{- '\n ' -}} </ul>
{%- endif -%}
{%- endif -%}
{#-
Notiz der Zutat
-#}
{%- if ing.notes is defined and ing.notes != "" -%}
{%- if ing.notes.blocks != [] -%}
{%- for nde in ing.notes.blocks -%}
{%- if loop.index == 1 -%}
{{- '\n ' -}} <h3 id="note_{{- ing.ingredient | string -}}">Notiz zu {{ ing.ingredient }}:</h3>
{{- '\n ' -}} <ul>
{%- endif -%}
{{- '\n ' -}} <li>
{{- '\n ' -}}
<span class="ingredientnote">{{ nde.note }}</span>
{{- '\n ' -}} </li>
{%- endfor -%}
{{- '\n ' -}} </ul>
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{{- '\n ' -}} </div>
{{- '\n ' -}} </div>
{%- endif -%}
{%- endif -%}