{% macro ResultTable(query, results, list, sort, ord) %}
{% for user in results %} {% endfor %}
{{ 'Login' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'First/Last Name' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'Company' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'E-Mail' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'Country' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'Last Template' | trans }} {{ ord == 'asc' ? '▼' : '▲' }} {{ 'Creation date' | trans }} {{ ord == 'asc' ? '▼' : '▲' }}
{{ user.getLogin() }} {{ user.getFirstName() }} / {{ user.getLastName() }} {{ user.getCompany() }} {{ user.getEmail() }} {{ user.getCountry() }} {{ user.getLogin() }} {{ app['date-formatter'].getDate(user.getCreated()) }}
{% endmacro %} {% macro badgeReadonly(entry, role) %}
{#{% if role >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %} {% endif %}#}
{{ entry.getUser().getDisplayName() }} {{ entry.getUser().getCompany() }}
{% endmacro %}