{% macro showCursus(cursus, hierarchy, lockedHierarchy, 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 %} {% if (cursusId == selectedCursusId) or ( lockedHierarchy[cursusId] is defined and (lockedHierarchy[cursusId] == 'up' or lockedHierarchy[cursusId] == 'down') ) %}   {% else %}   {% endif %}
{% else %} {{ cursusTitle }} {% if (cursusId == selectedCursusId) or ( lockedHierarchy[cursusId] is defined and (lockedHierarchy[cursusId] == 'up' or lockedHierarchy[cursusId] == 'down') ) %}   {% else %}   {% endif %} {% endif %} {% if hierarchy[cursusId] is defined %} {% endif %} {% endmacro %} {% from _self import showCursus %} {% extends "ClarolineCoreBundle:Administration:layout.html.twig" %} {% block title %} {{ parent() ~ ' - ' ~ 'claroline_cursus_tool_registration' | trans({}, 'tools') | striptags | raw ~ ' - ' ~ cursus.getTitle() }} {% endblock %} {% block breadcrumb %} {{ macros.breadcrumbs([ { 'icon': 'fa fa-cog', 'name': 'administration'|trans({}, 'platform'), 'href': path('claro_admin_index') }, { 'name': 'claroline_cursus_tool_registration'|trans({}, 'tools'), 'href': path('claro_cursus_tool_registration_index') }, { 'name': cursus.getTitle(), 'href': '' } ]) }} {% endblock %} {% block section_content %}

{{ cursus.getTitle() }}

{% set course = cursus.getCourse() %} {% if course is not empty and course.getDescription() is not empty %}
{{ course.getDescription()|raw }}
{% elseif cursus.getDescription() is not empty %}
{{ cursus.getDescription()|raw }}
{% endif %}
{% if hierarchy['root'] is defined %} {% for root in hierarchy['root'] %} {{ showCursus(root, hierarchy, lockedHierarchy, cursus.getId()) }} {% endfor %} {% endif %}
{% if cursusGroups|length > 0 %}
{% for cursusGroup in cursusGroups %} {% set group = cursusGroup.getGroup() %} {% endfor %}
{{ 'name'|trans({}, 'platform') }} {{ 'registration_date'|trans({}, 'cursus') }}
{{ group.getName() }} {{ cursusGroup.getRegistrationDate()|intl_date_format }} {{ 'unregister'|trans({}, 'cursus') }}
{% else %}
{{ 'no_group'|trans({}, 'platform') }}
{% endif %}
{% if cursusUsers|length > 0 %}
{% for cursusUser in cursusUsers %} {% set user = cursusUser.getUser() %} {% endfor %}
{{ 'firstName'|trans({}, 'platform') }} {{ 'lastName'|trans({}, 'platform') }} {{ 'username'|trans({}, 'platform') }} {{ 'registration_date'|trans({}, 'cursus') }}
{{ user.getFirstName() }} {{ user.getLastName() }} {{ user.getUsername() }} {{ cursusUser.getRegistrationDate()|intl_date_format }} {{ 'unregister'|trans({}, 'cursus') }}
{% else %}
{{ 'no_user'|trans({}, 'platform') }}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}