{% set link_all = menu.parent ? path('template_level2', {idlevel1:menu.parent.id, titlelevel1:menu.parent.slug, id:menu.id, title:menu.slug}) : path('template', {id:menu.id, title:menu.slug})  %}
<div class="module module-menuchildrenlist module-{{ module.id }} {{ module.customClass }}">
    {% if module.params.title is not empty and module.params.title_tag is not empty %}
        <{{ module.params.title_tag }} class="module-title">
            {{ module.params.title }}
        </{{ module.params.title_tag }}>
    {% endif %}
    <div class="list-items">
        {% for child in children %}
            {{ include('Front/Render/Module/MenuChildrenList/_item.html.twig') }}
        {% endfor %}
    </div>
    {% if module.params.btn_text %}
    <p class="module-more-actions text-center">
        <a class="btn btn-tangerine" href="{{ module.params.btn_link is not empty ? module.params.btn_link : link_all }}">
            {{ module.params.btn_text }}
        </a>
    </p>
    {% endif %}
</div>