{% extends "index.html.twig" %} {% block searchBar %} {% set searchParams = { 'placeholder':'Benutzer durchsuchen', 'action' : path('users_search') } %} {{ parent() }} {% endblock %} {% block searchBtn %} {{ parent() }} {% endblock %} {% block searchTerm %} {% set resetPath = path('users_search',{reset: true}) %} {{ parent() }} {% endblock %} {% block breadcrumbMenu %} {% if is_granted('tank_create') %} Neuen Benutzer erstellen {% endif %} {% endblock %} {% block breadcrumb %} Benutzer {% endblock %} {% block body %}
Aktiv
Oxaion Sachb. Nr.
Benutzername
Name
Firma
Gruppe
Letzter Login
{% for user in users %}
{% if user.active == true %} {% else %} {% endif %}
{{ user.oxaionnumber }}
{{ user.username }} {% if user.id == app.user.id %} (eingeloggt) {% endif %}
{{ user.firstname }} {{ user.lastname }}
{% if user.company %} {{ user.company }} {% endif %}
{{ user.usergroup }}
{% if user.lastlogin %} {{ user.lastlogin|date("d.m.Y H:i:s") }} {% else %} {% endif %}
{% if is_granted('user_edit') %} {% if user.id != 1 and user.id != app.user.id %} {% elseif user.id == app.user.id %} {% else %} {% endif %} {% endif %} {% if user.password starts with '$2' %} {% else %} {% endif %} {% if is_granted('user_delete') %} {% if user.id != 1 and user.id != app.user.id %} {% else %} {% endif %} {% endif %}
{% else %}
Es wurden keine Benutzer gefunden
{% endfor %}
{#
#} {# {% if users|length > 0 %}#} {# {% if pager.hasNextPage() or pager.hasPreviousPage() %}#} {# {{ pagerfanta(pager, 'twitter_bootstrap4',{'prev_message': '', 'next_message': ''}) }}#} {# {% endif %}#} {# {% endif %}#} {#
#} {% endblock %}