{% extends 'admin.html.twig' %} {% block title %}{{ app.request.attributes.get('role') }} - Liste Documents{% endblock %} {% block body %}

Liste des documents

{{ include('@AppBundle/Default/flashBag.html.twig') }}
{% if (is_granted('ROLE_DOCUMENT')) or (is_granted('ROLE_ADMIN')) %} Ajouter Document {#{{ dump(role) }}#} {% endif %}

{% if (is_granted('ROLE_DOCUMENT')) or (is_granted('ROLE_ADMIN')) %} {% endif %} {% if (is_granted('ROLE_DOCUMENT')) or (is_granted('ROLE_ADMIN')) %} {% endif %} {% for document in documents %} {% if (is_granted('ROLE_DOCUMENT')) or (is_granted('ROLE_ADMIN')) %} {% endif %} {% endfor %}
Name Date d'ajout Date Modification DocumentActions
Name Date d'ajout Date Modification DocumentActions
{{ document.name }} {{ document.insertAt |date('Y-m-d H:i') }} {{ document.updateAt |date('Y-m-d H:i') }} {{ render(controller('BackBundle:Documents/Back:editDocument',{'token':document.token, 'role': role })) }}
{#{{ render(controller('BackBundle:Documents/Back:addDocument')) }}#} {{ render(controller('BackBundle:Documents/Back:addDocument', {'role': role})) }}
{% endblock %} {% block javascripts %} {{ parent() }} {% include '@BackBundle/Documents/bibliotheque/assets.html.twig' %} {% endblock %}