{% extends 'core/export.html' %}
{% load i18n %}

{% block body %}

    <h1>{% trans 'Option sets' %}</h1>

    {% for optionset in optionsets %}

    <h2>{% trans 'Option set' %}</h2>

    <p>
        <strong>{% trans 'Key' %}:</strong> {{ optionset.key }}
    </p>

    {% if optionset.comment %}

    <p>
        <strong>{% trans 'Comment' %}</strong> {{ optionset.comment }}
    </p>

    {% endif %}

    <p>
        <strong>{% trans 'Options' %}:</strong>
    </p>

    <ul>
        {% for option in optionset.options.all %}
        <li>
            </strong> {{ option.text }}{% if option.additional_input %}: __________{% endif %}
        </li>
        {% endfor %}
    </ul>

    {% if optionset.conditions.all %}

    <p>
        <strong>{% trans 'Conditions' %}:</strong>
    </p>

    <ul>
        {% for condition in optionset.conditions.all %}
        <li>
            {{ condition.source.path }} {{ condition.relation_label }} {{ condition.target_label }}
        </li>
        {% endfor %}
    </ul>

    {% endif %}

    {% endfor %}

{% endblock %}
