{% if scanners.getTotalItemCount > 0 %}
{{ knp_pagination_render(scanners, null, {}, {'align': 'center'}) }}
{% else %}
{% include "Global/message.html.twig" with { type: "info", message: ('No scanners found'|trans), icon: "fas fa-exclamation-circle" } %}
{% endif %}
{% for user in scanners %}
{% endfor %}
{{'Name / Username' | trans}} | {{'Creation date / Last login' | trans}} | {{'Events count' | trans}} | {{'Status' | trans}} | |
---|---|---|---|---|
{{ user.scanner.name }} / {{ user.username }} |
{{ user.createdAt|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }}
{% if user.lastLogin %} {{ user.lastLogin|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {% else %} {{ "N/A"|trans }} {% endif %} |
{{ user.scanner.eventdates|length }} |
{% if user.enabled %}
{{ "Enabled"|trans }}
{% else %}
{{ "Disabled"|trans }}
{% endif %}
{% if user.deletedAt %}
{{ "Deleted"|trans }} {% endif %} |