{% extends '@OroUI/actions/view.html.twig' %} {% oro_title_set({params : {"%email%": entity.email }}) %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_customer_customer_user_index'), 'indexLabel': 'oro.customer.customeruser.entity_plural_label'|trans, 'entityTitle': entity.username|default('N/A'|trans) } %} {{ parent() }} {% endblock pageHeader %} {% block breadcrumbs %} {% import '@OroUI/macros.html.twig' as UI %} {{ parent() }} {% if entity.enabled %} {{ UI.badge('oro.customer.customeruser.profile.statuses.enabled'|trans, 'enabled') }} {% else %} {{ UI.badge('oro.customer.customeruser.profile.statuses.disabled'|trans, 'disabled') }} {% endif %} {% placeholder view_page_title_status with {entity: entity} %} {% endblock breadcrumbs %} {% block stats %} {% if is_granted('oro_customer_view_user_login_attempt') %} {% set loginAttempts %} {{ 'oro.customer.customeruser.last_login.label'|trans }}: {{ entity.lastLogin ? entity.lastLogin|oro_format_datetime : 'N/A'|trans }} {% endset %} {% else %} {% set loginAttempts %} {{ 'oro.customer.customeruser.last_login.label'|trans }}: {{ entity.lastLogin ? entity.lastLogin|oro_format_datetime : 'N/A'|trans }} {% endset %} {% endif %}