{% macro renderPager(pager, max, orderedBy, order) %} {{ pagerfanta( pager, 'twitter_bootstrap_translated', { 'proximity' : 1, 'routeName': 'claro_contact_show_all_my_contacts', 'routeParams': { 'max': max, 'orderedBy': orderedBy, 'order': order } } ) }} {% endmacro %} {% macro sortUrl(max, orderedBy, order) %} {% if order == 'ASC' %} {% set newOrder = 'DESC' %} {% else %} {% set newOrder = 'ASC' %} {% endif %} {{ path( 'claro_contact_show_all_my_contacts', { 'max': max, 'orderedBy': orderedBy, 'order': newOrder } ) }} {% endmacro %} {% from _self import renderPager %} {% from _self import sortUrl %} {% from "ClarolineCoreBundle::macros.html.twig" import maxResultsSelectBox %} {% if contacts|length > 0 %}
{{ 'picture'|trans({}, 'platform') }} | {% endif %}{{ 'firstName'|trans({}, 'platform') }} | {{ 'lastName'|trans({}, 'platform') }} | {% if options['show_username'] is not defined or options['show_username'] %}{{ 'username'|trans({}, 'platform') }} | {% endif %} {% if options['show_mail'] is not defined or options['show_mail'] %}{{ 'mail'|trans({}, 'platform') }} | {% endif %} {% if options['show_phone'] is not defined or options['show_phone'] %}{{ 'phone'|trans({}, 'platform') }} | {% endif %}{{ 'actions'|trans({}, 'platform') }} |
---|---|---|---|---|---|---|
{% if contact.getPicture() != '' %}
{% endif %} |
{% endif %}
{{ contact.getFirstName() }} | {{ contact.getLastName() }} | {% if options['show_username'] is not defined or options['show_username'] %}{{ contact.getUsername() }} | {% endif %} {% if options['show_mail'] is not defined or options['show_mail'] %}{{ contact.getMail() }} | {% endif %} {% if options['show_phone'] is not defined or options['show_phone'] %}{{ contact.getPhone() }} | {% endif %}