{% extends 'base.html.twig' %} {% set bodyClass = 'registry_proof list' %} {% set menuItem = 'registry_proof' %} {% block title %}{{ 'registry.proof.title.list'|trans }} - {{ parent() }}{% endblock %} {% block stylesheets %} {% endblock %} {% block body_head %}

{{ 'registry.proof.title.list'|trans }} {% if app.request.query.get('archive') == 'true' %} {{ 'registry.proof.title.list_archived'|trans }} {% else %} {{ 'registry.proof.title.list_not_archived'|trans }} {% endif %}

{% endblock %} {% block breadcrumb %} {% set breadcrumb = [ { 'name': 'registry.proof.title.list'|trans } ] %} {% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %} {% endblock %} {% block body %}
{% if is_granted('ROLE_USER') %} {{ 'registry.proof.action.new'|trans }} {% endif %} {% if app.request.query.get('archive') != 'true' %} {{ 'registry.proof.action.download'|trans }} {% endif %} {% if app.request.query.get('archive') == 'true' %} {{ 'registry.proof.action.not_archived'|trans }} {% else %} {{ 'registry.proof.action.archived'|trans }} {% endif %} {% if category and category.documents|length > 0 %} {{ 'global.action.documentation'|trans }} {% endif %}
{% if is_granted('ROLE_REFERENT') %} {% endif %} {% if app.user.hasServices %} {% endif %} {% if is_granted('ROLE_REFERENT') %} {% endif %} {% if app.user.hasServices %} {% endif %}
{{ 'registry.proof.title.list'|trans }} {% if app.request.query.get('archive') == 'true' %}{{ 'registry.proof.title.list_archived'|trans }}{% else %}{{ 'registry.proof.title.list_not_archived'|trans }}{% endif %}
{{ 'registry.proof.label.name'|trans }}{{ 'global.label.organization'|trans }}{{ 'global.label.service'|trans }}{{ 'registry.proof.label.type'|trans }} {{ 'registry.proof.label.comment'|trans }} {{ 'global.label.created_at'|trans }} {{ 'global.label.updated_at'|trans }} {{ 'global.label.actions'|trans }}
{% endblock %} {% block javascripts %} {% set collectivityIsVisible = false %} {% set collectivityClassname = "noVis" %} {% if is_granted('ROLE_REFERENT') %} {% set collectivityIsVisible = true %} {% set collectivityClassname = "" %} {% endif %} {% set cols = [ {"data": "nom"}, {"data": "type"}, {"data": "commentaire"}, {"data": "date", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "className": "noVis", "orderable": false}, ] %} {% if app.user.hasServices %} {% set cols = [ {"data": "nom", "className": "noVis"}, {"data": "service", "visible": false}, {"data": "type"}, {"data": "commentaire"}, {"data": "date", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "className": "noVis", "orderable": false}, ] %} {% endif %} {% if is_granted('ROLE_REFERENT') %} {% set cols = [ {"data": "nom", "className": "noVis"}, {"data": "collectivite", "className": collectivityClassname, "visible": collectivityIsVisible}, {"data": "service", "visible": false}, {"data": "type"}, {"data": "commentaire"}, {"data": "date", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "className": "noVis", "orderable": false}, ] %} {% endif %} {% set dataTableOptions = { columns: cols, order: [ [0, 'asc' ] ], } %} {{ include('_Utils/_serverside_datatable.html.twig') }} {% endblock %}