{% extends app.request.xmlHttpRequest ? '@TigrisBase/admin/ajax-layout.html.twig' : '@TigrisBase/admin/layout.html.twig' %} {% block main %} {% embed '@TigrisBase/decorators/_card.html.twig' with {'class': ''} %} {% block header %} {{ entity.username }} {% endblock %} {% block body %}
{{ '.icon-id-card'|parse_icons }} {{ 'user.main_infos'|trans }}
{{ 'user.username'|trans }}
{{ entity.username }}
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_ADMIN') %}
{{ 'user.email'|trans }}
{{ entity.email }}
{% endif %}
{{ 'user.status'|trans }}
{% if entity.hasRole('ROLE_SUPER_ADMIN') %} {{ 'role.admin'|trans }} {% elseif entity.enabled %} {{ 'user.enabled'|trans }} {% else %} {{ 'user.disabled'|trans }} {% endif %}
{{ 'user.date.created'|trans }}
{{ entity.createdAt|format_datetime('short', 'short') }}
{{ 'user.date.last_login'|trans }}
{% if entity.onlineAt is not empty %}{{ entity.onlineAt|format_datetime('short', 'short') }} {% else %}{{ 'user.no_last_login'|trans }} {% endif %}
{#
{{ 'resetting.request.last'|trans }}
{% if entity.passwordRequestedAt is not empty %}{{ entity.passwordRequestedAt|format_datetime('short', 'short') }} {% else %}{{ 'resetting.request.no'|trans }} {% endif %}
#}
{% for key, data in moreData %}
{{ key|trans|parse_icons }}
{% for info, value in data %}
{{ info|trans }}
{{ value|raw }}
{% endfor %}
{% endfor %} {% endblock %} {% block footer %} {{ 'button.return'|trans }} {% endblock %} {% endembed %} {% endblock %}