{% macro showCursus(cursus, hierarchy, selectedCursusId) %} {% set cursusId = cursus.getId() %} {% set cursusTitle = cursus.getTitle() %} {% if cursus.getCourse() is empty %}
{{ cursusTitle }} {% if cursus.isBlocking() %}   {% endif %} {% if hierarchy[cursusId] is defined %}   {% endif %}  
{% else %} {{ cursusTitle }} {% endif %} {% if hierarchy[cursusId] is defined %} {% endif %} {% endmacro %} {% from _self import showCursus %} {% if hierarchy['root'] is defined %} {% for root in hierarchy['root'] %} {{ showCursus(root, hierarchy, cursus.getId()) }} {% endfor %} {% endif %}