{% load i18n %}

<div class="slider__text__item__content{% if instance.email %} email{% endif %}">
    <h3 class="slider__text__item__title">{{ instance.title }}</h3>
    {% if instance.subline %}
        <p class="slider__text__item__subline">{{ instance.subline }}</p>
    {% endif %}
    {% if instance.text %}
        <p class="slider__text__item__text">{{ instance.text }}</p>
    {% endif %}
    {% if instance.qualifications.count > 0 %}
        <h4 class="slider__text__item__qualifications__title">{% trans 'Qualifikationen' %}:</h4>
        <ul class="slider__text__item__qualifications">
            {% for qualification in instance.qualifications.all %}
                <li>{{ qualification.name }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    {% if instance.next_slide_text %}
        <p class="slider__text__item__text">
            <a class="slider__next" href="#">
                <span>{{ instance.next_slide_text }}</span>
                {% include 'project/assets/arrow-right.svg' %}
            </a>
        </p>
    {% endif %}
</div>