{% extends "AdmingeneratorGeneratorBundle::base_admin_assetic_less.html.twig" %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block title %} {{ parent() }}{% trans from "Admin" %}Liste des utilisateurs{% endtrans %} {% endblock %} {% block body %}{{ block('actionsmenu') }}
{% block list_scopes %} {% endblock %} {% block list_nbresults %}
{% set count = Myusers.nbResults %} {% set start = ( Myusers.currentPage - 1 ) * Myusers.maxPerPage + 1 %} {% set end = start + Myusers.maxPerPage - 1 %} {% set end = end > count ? count : end %} {% if Myusers.haveToPaginate %} {% trans with {'%start%': start,'%end%': end,'%count%': count,} from "Admingenerator" %}list.display.range{% endtrans %} {% elseif count > 0 %} {% trans with {'%count%': count,} from "Admingenerator" %}list.display.all{% endtrans %} {% endif %}
{% 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 %} {% 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 %} {% endif %} {% endblock %} {% endfor %} {% else %} {% endif %} {% if isSelect is defined and isSelect==1 %} {% endif %} {% endblock %}
{% if sortColumn == 'username' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Nom d\'utilisateur (login)'|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 == 'idCentres' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Centre(s)'|trans({}, 'Admin') }} {% if sortColumn == 'idCentres' %} {% if sortColumn == 'idCentres' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Groupes'|trans({}, 'Admin') }} {% if sortColumn == 'roles' %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'enabled' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Actif'|trans({}, 'Admin') }} {% if sortColumn == 'enabled' %} {% if sortColumn == 'enabled' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% trans from "Admingenerator" %}list.header.actions{% endtrans %}
{% if (isSelect is not defined or isSelect!=1) and 'username' in assocs|keys and Myuser.username is not null %} {% set idfield = attribute(Myuser.username,assocs['username'].refid) %} {% endif %} {% block list_td_column_username %}{{ Myuser.username }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'username' in assocs|keys and Myuser.username is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'email' in assocs|keys and Myuser.email is not null %} {% set idfield = attribute(Myuser.email,assocs['email'].refid) %} {% endif %} {% block list_td_column_email %}{{ Myuser.email }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'email' in assocs|keys and Myuser.email is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'idCentres' in assocs|keys and Myuser.idCentres is not null %} {% set idfield = attribute(Myuser.idCentres,assocs['idCentres'].refid) %} {% endif %} {% block list_td_column_idCentres %}
    {% for object in Myuser.idCentres %}
  • {{ object }}
  • {% endfor %}
{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'idCentres' in assocs|keys and Myuser.idCentres is not null %} {% endif %}
{% if (isSelect is not defined or isSelect!=1) and 'roles' in assocs|keys and Myuser.roles is not null %} {% set idfield = attribute(Myuser.roles,assocs['roles'].refid) %} {% endif %} {% block list_td_column_roles %}
    {% for object in Myuser.roles %}
  • {{ object }}
  • {% endfor %}
{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'roles' in assocs|keys and Myuser.roles is not null %} {% endif %}
{% if (isSelect is not defined or isSelect!=1) and 'enabled' in assocs|keys and Myuser.enabled is not null %} {% set idfield = attribute(Myuser.enabled,assocs['enabled'].refid) %} {% endif %} {% block list_td_column_enabled %} {% if Myuser.enabled %} {% else %} {% endif %}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'enabled' in assocs|keys and Myuser.enabled is not null %} {% endif %}
{% trans from "Admingenerator" %}list.no.results{% endtrans %}
{% 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_actions %} {% if isMulti is not defined or isMulti!=1 %} {% trans from "Admingenerator" %}Ajouter un utilisateur{% endtrans %} {% 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 %} {% endif %} {% endblock %}
{% endblock %}