{% extends 'USBackendBundle::baseGrid.html.twig' %} {% use 'USBackendBundle:User:includes/headerUser.html.twig' %} {% use 'USBackendBundle:User:includes/list.html.twig' %} {% use 'USBackendBundle:User:includes/type_filter.html.twig' %} {% use 'USBackendBundle:User:includes/titles.html.twig' %} {% block grid %}
{% block headerUser %} {{ parent() }} {% endblock %}
{% if grid.isTitleSectionVisible %} {{ grid_titles(grid) }} {% endif %} {{ grid_rows(grid) }}
{% if grid.isPagerSectionVisible %} {{ grid_pager(grid) }} {% endif %} {% if withjs %} {{ grid_scripts(grid) }} {% endif %} {% endblock grid %} {# ---------------------------------------------------- grid_rows --------------------------------------------------- #} {% block grid_rows %} {% for row in grid.rows %} {% block list %} {{ parent() }} {% endblock %} {% endfor %} {% endblock grid_rows %} {# --------------------------------------------------- grid_titles -------------------------------------------------- #} {% block grid_titles %} {% block titles %} {{ parent() }} {% endblock %} {% endblock grid_titles %} {# -------------------------------------------- grid_column_filter_type_input --------------------------------------- #} {% block grid_column_filter_type_input %} {% block type_filter %} {{ parent() }} {% endblock %} {% endblock grid_column_filter_type_input %} {% block grid_column_responsibleType_cell %} {% if value == "tutor" %} {{'user.responsibleType.tutor'|trans({},"USBackendBundle")}} {% elseif value == "boss" %} {{'user.responsibleType.boss'|trans({},"USBackendBundle")}} {% endif %} {% endblock %} {% block grid_column_hostType_cell %} {% if value == "trainee" %} {{'user.hostType.trainee'|trans({},"USBackendBundle")}} {% elseif value == "intern" %} {{'user.hostType.intern'|trans({},"USBackendBundle")}} {% elseif value == "extern" %} {{'user.hostType.extern'|trans({},"USBackendBundle")}} {% elseif value == "outsourced" %} {{'user.hostType.outsourced'|trans({},"USBackendBundle")}} {% endif %} {% endblock %}