{% load i18n cms_tags menu_tags %}

{% for child in children %}
    <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}"
       class="header__button header__button--light data_id_{{ forloop.counter0 }}">
        {{ child.get_menu_title }}
    </a>
{% endfor %}
{% page_url 'portal' as portal_url %}
{% if portal_url %}
    <a href="{{ portal_url }}"
       class="header__button header__button--light data_id_{{ children|length|add:1 }}">
        {% trans 'Eltern-Login' %}
    </a>
{% endif %}