{% extends 'base.html.twig' %} {% set bodyClass = 'registry_mesurement action_plan' %} {% set menuItem = 'registry_mesurement_action_plan' %} {% block title %}{{ 'registry.mesurement.title.action_plan'|trans }} - {{ parent() }}{% endblock %} {% block stylesheets %} {% endblock %} {% block body_head %}

{{ 'registry.mesurement.title.action_plan'|trans }}

{% endblock %} {% block breadcrumb %} {% set breadcrumb = [ { 'name': 'registry.mesurement.title.action_plan'|trans } ] %} {% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %} {% endblock %} {% block body %}
{% if category and category.documents|length > 0 %} {{ 'global.action.documentation'|trans }} {% endif %} {% if app.user.roles[0] != 'ROLE_REFERENT' %} {{ 'global.action.report'|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.mesurement.title.list'|trans }} planifiées
{{ 'registry.mesurement.label.name'|trans }}{{ 'global.label.organization'|trans }}{{ 'global.label.service'|trans }}{{ 'registry.mesurement.label.planification_date'|trans }} {{ 'registry.mesurement.label.cost'|trans }} {{ 'registry.mesurement.label.charge'|trans }} {{ 'registry.mesurement.label.priority'|trans }} {{ 'registry.mesurement.label.manager'|trans }} {{ 'registry.mesurement.label.description'|trans }} {{ 'registry.mesurement.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" %} {% set actionIsVisible = false %} {% if is_granted('ROLE_REFERENT') %} {% set collectivityIsVisible = true %} {% set collectivityClassname = "" %} {% endif %} {% if is_granted('ROLE_USER') %} {% set actionIsVisible = true %} {% endif %} {% set cols = [ {"data": "nom", "className": "noVis"}, {"data": "date_planification"}, {"data": "cout", "visible": false}, {"data": "charge", "visible": false}, {"data": "priorite"}, {"data": "responsable_action"}, {"data": "description", "visible": false, "orderable": true}, {"data": "observation", "visible": false, "orderable": true}, {"data": "createdAt", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "orderable": false, "className": "noVis", "visible": actionIsVisible}, ] %} {% set orders = [ [1, 'asc' ] ] %} {% if app.user.hasServices %} {% set cols = [ {"data": "nom", "className": "noVis"}, {"data": "service", "visible": false}, {"data": "date_planification"}, {"data": "cout", "visible": false}, {"data": "charge", "visible": false}, {"data": "priorite"}, {"data": "responsable_action"}, {"data": "description", "visible": false, "orderable": true}, {"data": "observation", "visible": false, "orderable": true}, {"data": "createdAt", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "orderable": false, "className": "noVis", "visible": actionIsVisible}, ] %} {% set orders = [ [2, 'asc' ] ] %} {% endif %} {% if is_granted('ROLE_REFERENT') %} {% set cols = [ {"data": "nom", "className": "noVis"}, {"data": "collectivite", "className": collectivityClassname, "visible": collectivityIsVisible}, {"data": "service", "visible": false}, {"data": "date_planification"}, {"data": "cout", "visible": false}, {"data": "charge", "visible": false}, {"data": "priorite"}, {"data": "responsable_action"}, {"data": "description", "visible": false, "orderable": true}, {"data": "observation", "visible": false, "orderable": true}, {"data": "createdAt", "visible": false}, {"data": "updatedAt", "visible": false}, {"data": "actions", "orderable": false, "className": "noVis", "visible": actionIsVisible}, ] %} {% set orders = [ [3, 'asc' ] ] %} {% endif %} {% set dataTableOptions = { columns: cols, order: orders, } %} {{ include('_Utils/_serverside_datatable.html.twig') }} {% endblock %}