{% load i18n %}

{% trans 'Catalog' %} {{ catalog.title }}

{% if catalog.comment %}

{% trans 'Comment' %} {{ catalog.comment }}

{% endif %} {% for section in catalog.sections.all %}

{% trans 'Section' %} {{ section.title }}

{% if section.comment %}

{% trans 'Comment' %} {{ section.comment }}

{% endif %} {% for subsection in section.subsections.all %}

{% trans 'Subsection' %} {{ subsection.title }}

{% if subsection.comment %}

{% trans 'Comment' %} {{ subsection.comment }}

{% endif %} {% for entity in subsection.entities.all %} {% if entity.is_set %}

{% trans 'Question set' %}

{% if entity.help %}

{% trans 'Help' %} {{ entity.help }}

{% endif %} {% if entity.comment %}

{% trans 'Comment' %} {{ entity.comment }}

{% endif %}

{% trans 'Questions' %}

{% elif entity.question.parent == None %}

{% trans 'Question' %}

{% trans 'Text' %} {{ entity.question.text }}

{% if entity.help %}

{% trans 'Help' %} {{ entity.help }}

{% endif %} {% if entity.attribute_entity.attribute.optionsets.all %}

{% trans 'Options' %}

{% endif %} {% if entity.attribute_entity.attribute.range %}

{% trans 'Range' %}:

{% endif %} {% if entity.comment %}

{% trans 'Comment' %} {{ entity.comment }}

{% endif %} {% endif %} {% endfor %} {% endfor %} {% endfor %}