{% for function in functions %}
{# a hrefs like switches #}
{{ function.name }}
{% if function.form %}
{% with form=function.form, id=function.id, value=function_forms[function.id] %}
{% include "form.html" ignore missing %}
{% endwith %}
{% endif %}
{% endfor %}
{{ article.title }}
{% if article.global_block %}
{% with block=article.global_block, BlockTypeEnum=BlockTypeEnum, BlockLevelEnum=BlockLevelEnum %}
{% include "block.html" %}
{% endwith %}
{% endif %}
{% for block in article.blocks %}
{% with block=block, BlockTypeEnum=BlockTypeEnum, BlockLevelEnum=BlockLevelEnum %}
{% include "block.html" %}
{% endwith %}
{% endfor %}