{% extends "AdmingeneratorGeneratorBundle::base_admin_assetic_less.html.twig" %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block title %} {{ parent() }} - {% trans from "Admin" %}List of Users{% endtrans %} {% endblock %} {% block body %} {% block page_title %}

{% trans from "Admin" %}List of Users{% endtrans %}

{% endblock %} {{ block('actionsmenu') }}
{% block list_scopes %} {% endblock %} {% block form_batch_actions %} {% endblock %} {% block list_thead %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% if isMulti is defined and isMulti==1 %} {% endif %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% endblock %} {% block list_tbody %} {% if Myusers|length > 0 %} {% for Myuser in Myusers %} {% if 1 %} {% set oddclass=(loop.index0 % 2 == 0 ?'ginaodd':'ginaeven') %}{% block list_row %} {% if isSelect is not defined or isSelect!=1 %} {% endif %} {% if isMulti is defined and isMulti==1 %} {% endif %} {% endblock %} {% block list_object_actions %} {% if (isSelect is not defined or isSelect!=1) and (isMulti is not defined or isMulti!=1) %} {% endif %} {% endblock %} {% endif %} {% endfor %} {% endif %} {% endblock %}
{% if sortColumn == 'username' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Name'|trans({}, 'Admin') }} {% if sortColumn == 'username' %} {% if sortColumn == 'username' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'email' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Email'|trans({}, 'Admin') }} {% if sortColumn == 'email' %} {% if sortColumn == 'email' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'enabled' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Enabled'|trans({}, 'Admin') }} {% if sortColumn == 'enabled' %} {% if sortColumn == 'enabled' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'lastLogin' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Last login'|trans({}, 'Admin') }} {% if sortColumn == 'lastLogin' %} {% if sortColumn == 'lastLogin' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Role'|trans({}, 'Admin') }} {% if sortColumn == 'roles' %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% trans from "Admingenerator" %}list.header.actions{% endtrans %}
{% block list_td_column_username %}{{ Myuser.username }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'username'!='idHistory' and 'username' in assocs|keys and Myuser.username is not null %} {% endif %} {% block list_td_column_email %}{{ Myuser.email }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'email'!='idHistory' and 'email' in assocs|keys and Myuser.email is not null %} {% endif %} {% block list_td_column_enabled %} {% if Myuser.enabled %} {% else %} {% endif %}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'enabled'!='idHistory' and 'enabled' in assocs|keys and Myuser.enabled is not null %} {% endif %} {% block list_td_column_lastLogin %}{% if Myuser.lastLogin %} {% set datetime_format = "d/m/Y" %} {{ Myuser.lastLogin|date(datetime_format) }}{% endif %}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'lastLogin'!='idHistory' and 'lastLogin' in assocs|keys and Myuser.lastLogin is not null %} {% endif %} {% block list_td_column_roles %}
    {% for object in Myuser.roles %}
  • {{ object }}
  • {% endfor %}
{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'roles'!='idHistory' and 'roles' in assocs|keys and Myuser.roles is not null %} {% endif %}
{% if is_expr_granted('hasRole("ROLE_SUPER_ADMINISTRATOR")', Myuser) %} {% endif %}
{% if Myusers|length == 0 %}
{% trans from "Admingenerator" %}list.no.results{% endtrans %}
{% endif %}
{% block list_batch_actions %} {% if isMulti is defined and isMulti==1 %}
{% endif %} {% endblock %}
{% block list_paginator %} {% endblock %}
{% block endform_batch_actions %} {% endblock %}
{% block filters %} {% endblock %} {% block preferences %} {% endblock %} {% endblock %} {% block actionsmenu %}
{% block contentactionsmenu %} {% if (isSelect is not defined or isSelect!=1) and (isMulti is not defined or isMulti!=1) %} {% block list_actions %} {% if isMulti is not defined or isMulti!=1 %} {% if is_expr_granted('hasRole("ROLE_SUPER_ADMINISTRATOR")') %} {% endif %} {% endif %} {% endblock %} {% endif %} {% if (isSelect is defined and isSelect==1) or (isMulti is defined and isMulti==1) %} {% endif %} {% endblock %}
{% endblock %}