{% 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 %}
{{ '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 %} |