{% extends 'D2CustomerBundle::base.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'status', 'member_type'] %} {% endif %} {% endfor %}
Displaying {{ (customer_list.getCurrentPageNumber()-1) * customer_list.getItemNumberPerPage() + 1 }} to {{ ((customer_list.getCurrentPageNumber()-1) * customer_list.getItemNumberPerPage()) + (customer_list.getItems()|length) }} of {{ customer_list.getTotalItemCount() }} Portal User records
{% endblock page_header %} {% block content %} {% for entity in customer_list %} {% if entity.isGranted('ROLE_STANDARD_MEMBER') %} {% elseif entity.isGranted('ROLE_PARTNER_MEMBER') %} {% else %} {% endif %} {% endfor %}
{{ knp_pagination_sortable(customer_list, 'Status', 'u.enabled') }} {{ knp_pagination_sortable(customer_list, 'Account', 'a.account_number') }} {{ knp_pagination_sortable(customer_list, 'Username', 'u.username') }} {{ knp_pagination_sortable(customer_list, 'Firstname', 'c.firstname') }} {{ knp_pagination_sortable(customer_list, 'Lastname', 'c.lastname') }} {{ knp_pagination_sortable(customer_list, 'Email', 'u.email') }} {{ knp_pagination_sortable(customer_list, 'Country', 'ct.country') }} {{ knp_pagination_sortable(customer_list, 'Last Login', 'u.lastLogin') }}
{{ entity.enabled ? 'Enabled' : 'Disabled' }} {% if entity.getCustomer.getAccounts|length > 0 %} {% for account in entity.getCustomer.getAccounts %} {{ account.getAccountNumber }} {% endfor %} {% endif %} {% if entity.getCustomer.getPartner is not null %}{{ entity.getCustomer.getPartner.getAccountNumber }}{% endif %} {{ entity.username|trim }} {% if entity.getCustomer is not null %}{{ entity.getCustomer.getFirstname|trim }}{% endif %} {% if entity.getCustomer is not null %}{{ entity.getCustomer.getLastname|trim }}{% endif %} {{ entity.email|trim }} {% if entity.getCustomer is not null %}{{ entity.getCustomer.getPostalAddressCountry|trim }}{% endif %} {{ entity.lastLogin is empty ? "" : entity.lastLogin|date("Y/m/d") }}
{% endblock content %}