{% extends 'USBackendBundle::baseGrid.html.twig' %} {% use 'USBackendBundle:Drive:includes/header.html.twig' %} {% use 'USBackendBundle:Drive:includes/list.html.twig' %} {% use 'USBackendBundle:Drive:includes/filters.html.twig' %} {% use 'USBackendBundle:Drive:includes/type_filter.html.twig' %} {% use 'USBackendBundle:Drive:includes/titles.html.twig' %} {% block grid %} {% block header %} {{ 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_filters -------------------------------------------------- #} {% block grid_filters %} {% block filters %} {{ parent() }} {% endblock %} {% endblock grid_filters %} {# -------------------------------------------- grid_column_filter_type_input --------------------------------------- #} {% block grid_column_filter_type_input %} {% block type_filter %} {{ parent() }} {% endblock %} {% endblock grid_column_filter_type_input %} {# --------------------------------------------------- grid_titles -------------------------------------------------- #} {% block grid_titles %} {% block titles %} {{ parent() }} {% endblock %} {% endblock grid_titles %} {% block grid_column_type_cell %} {% if value == "text" %} {{'drive.type.text'|trans({},"USBackendBundle")}} {% elseif value == "image"%} {{'drive.type.image'|trans({},"USBackendBundle")}} {% elseif value == "video" %} {{'drive.type.video'|trans({},"USBackendBundle")}} {% elseif value == "audio" %} {{'drive.type.audio'|trans({},"USBackendBundle")}} {% endif %} {% endblock %}