{% extends 'D2CustomerBundle::base.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
Portal User
records
{{ 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') }} | |||
---|---|---|---|---|---|---|---|---|---|---|
![]() |
{% if entity.isGranted('ROLE_STANDARD_MEMBER') %}
{% if entity.getCustomer.getAccounts|length > 0 %} {% for account in entity.getCustomer.getAccounts %} {{ account.getAccountNumber }} {% endfor %} {% endif %} | {% elseif entity.isGranted('ROLE_PARTNER_MEMBER') %}{% if entity.getCustomer.getPartner is not null %}{{ entity.getCustomer.getPartner.getAccountNumber }}{% endif %} | {% else %}{% 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") }} |
|