{% extends "AdmingeneratorGeneratorBundle::base_admin_assetic_less.html.twig" %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block title %} {{ parent() }}{% trans from "Admin" %}List for IfocopBundle{% endtrans %} {% endblock %} {% block body %}{{ block('actionsmenu') }}
{% block list_scopes %} {% endblock %} {% block list_nbresults %}
{% set count = UserGroups.nbResults %} {% set start = ( UserGroups.currentPage - 1 ) * UserGroups.maxPerPage + 1 %} {% set end = start + UserGroups.maxPerPage - 1 %} {% set end = end > count ? count : end %} {% if UserGroups.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 UserGroups|length > 0 %} {% for UserGroup in UserGroups %} {% 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 == 'name' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Name'|trans({}, 'Admin') }} {% if sortColumn == 'name' %} {% if sortColumn == 'name' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Roles'|trans({}, 'Admin') }} {% if sortColumn == 'roles' %} {% if sortColumn == 'roles' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% if sortColumn == 'id' and sortOrder == 'ASC' %} {% else %} {% endif %}{{ 'Id'|trans({}, 'Admin') }} {% if sortColumn == 'id' %} {% if sortColumn == 'id' and sortOrder == 'ASC' %} {% else %} {% endif %} {% endif %} {% trans from "Admingenerator" %}list.header.actions{% endtrans %}
{% if (isSelect is not defined or isSelect!=1) and 'name' in assocs|keys and UserGroup.name is not null %} {% set idfield = attribute(UserGroup.name,assocs['name'].refid) %} {% endif %} {% block list_td_column_name %}{{ UserGroup.name }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'name' in assocs|keys and UserGroup.name is not null %} {% endif %} {% if (isSelect is not defined or isSelect!=1) and 'roles' in assocs|keys and UserGroup.roles is not null %} {% set idfield = attribute(UserGroup.roles,assocs['roles'].refid) %} {% endif %} {% block list_td_column_roles %}
    {% for object in UserGroup.roles %}
  • {{ object }}
  • {% endfor %}
{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'roles' in assocs|keys and UserGroup.roles is not null %} {% endif %}
{% if (isSelect is not defined or isSelect!=1) and 'id' in assocs|keys and UserGroup.id is not null %} {% set idfield = attribute(UserGroup.id,assocs['id'].refid) %} {% endif %} {% block list_td_column_id %}{{ UserGroup.id }}{% endblock %} {% if (isSelect is not defined or isSelect!=1) and 'id' in assocs|keys and UserGroup.id is not null %} {% endif %}
{% trans from "Admingenerator" %}list.no.results{% endtrans %}
{% if UserGroups|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" %}action.generic.new{% 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 %}