{% extends 'base.html.twig' %} {% set bodyClass = 'documentation_document list' %} {% set menuItem = 'documentation' %} {% set activeCategories = [] %} {% for object in objects %} {% for cat in object.categories %} {% set activeCategories = activeCategories|merge([cat.name]) %} {% endfor %} {% endfor %} {% block title %}{{ 'documentation.document.title.title'|trans }} - {{ parent() }}{% endblock %} {% block stylesheets %} {% endblock %} {% block body_head %}

{{ 'documentation.document.title.title'|trans }} {{ 'documentation.document.title.subtitle'|trans }}

{% endblock %} {% block breadcrumb %} {% set breadcrumb = [ { 'name': 'documentation.document.title.title'|trans } ] %} {% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %} {% endblock %} {% block body %}
{% if is_granted('ROLE_ADMIN') %} {{ 'documentation.category.action.list'|trans }} {% endif %}
{# SWITCH GRID LIST #} {# {% if is_granted('ROLE_USER') %}#}
{{ 'documentation.document.action.list'|trans }} {# RESET FILTERS #}
{# {% else %}#} {#
#} {#
#} {# {% endif %}#}
{% for object in objects %} {% endfor %}
{% endblock %} {% block javascripts %} {% set dataTableOptions = { columns: [ {"data": "thumbnail", "orderable": false}, {"data": "favorite"}, {"data": "name"}, {"data": "type"}, {"data": "weight"}, {"data": "created_at"}, {"data": "category"}, {"data": "actions", "orderable": false}, {"data": "pinned"}, ], order: [[8,'desc'],[5,'desc']], language: { buttons: { colvis: "Colonnes" }, }, dom: 'Brtip', columnDefs: [ { targets: 4, className: 'noVis' } ], buttons: [ { extend: "colvis", columns: ":not(.noVis)" } ], } %} {# {{ include('_Utils/_serverside_datatable.html.twig') }} #} {{ include('_Utils/_datatable.html.twig') }} {% endblock %}