{% macro renderPager(pager, search, orderedBy, order, max) %} {{ pagerfanta( pager, 'twitter_bootstrap_translated', { 'proximity' : 1, 'routeName': 'claro_cursus_tool_registration_index_with_search', 'routeParams': { 'search': search, 'orderedBy': orderedBy, 'order': order, 'max': max } } ) }} {% endmacro %} {% macro sortUrl(search, orderedBy, order, max) %} {% if order == 'ASC' %} {% set newOrder = 'DESC' %} {% else %} {% set newOrder = 'ASC' %} {% endif %} {{ path( 'claro_cursus_tool_registration_index_with_search', { 'search': search, 'orderedBy': orderedBy, 'order': newOrder , 'max': max } ) }} {% endmacro %} {% from _self import renderPager %} {% from _self import sortUrl %} {% extends "ClarolineCoreBundle:Administration:layout.html.twig" %} {% block title %} {{ parent() ~ ' - ' ~ 'claroline_cursus_tool_registration' | trans({}, 'tools') | striptags | raw }} {% 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': '' } ]) }} {% endblock %} {% block section_content %}

{{ 'claroline_cursus_tool_registration'|trans({}, 'tools') }}

{{ macros.flashBox() }}
× {{ 'results_for_search_on'|trans({}, 'platform') }} : "{{ search }}"



{% if searchedCursus|length > 0 %}
{% for cursus in searchedCursus %} {% set course = cursus.getCourse() %} {% endfor %}
{{ 'title'|trans({}, 'platform') }} {{ 'code'|trans({}, 'platform') }} {{ 'description'|trans({}, 'platform') }} {{ displayedWords['cursus'] }} {{ 'type'|trans({}, 'platform') }}
{{ cursus.getTitle() }} {% if course is empty %} {{ cursus.getCode() }} {% else %} {{ course.getCode() }} {% endif %} {% if course is empty %} {% if cursus.getDescription() is empty %} - {% else %} {% endif %} {% else %} {% if course.getDescription() is empty %} - {% else %} {% endif %} {% endif %} {% if roots[cursus.getRoot()] is defined and roots[cursus.getRoot()] is not empty %} {{ roots[cursus.getRoot()].getTitle() }} {% else %} - {% endif %} {% if course is empty %} {{ 'node'|trans({}, 'cursus') }} {% else %} {{ displayedWords['course'] }} {% endif %}
{% if searchedCursus.getNbPages() > 1 %} {{ renderPager(searchedCursus, search, orderedBy, order, max) }} {% endif %} {% else %}
{{ 'no_result'|trans({}, 'cursus') }}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}