{% extends ('base.html.twig') %} {% set array_type = ['mine', 'in_progress', 'validate', 'history'] %} {% set array_title = {'mine':'Mes Télétravail', 'in_progress':'Télétravail en cours', 'validate':'Télétravail à valider', 'history':'Historique de Télétravail'} %} {% set array_role = {'mine':'ROLE_AFFICHER_TELETRAVAIL_PERSONNEL', 'in_progress':'ROLE_AFFICHER_TELETRAVAIL_EN_COURS', 'validate':'ROLE_AFFICHER_TELETRAVAIL_A_VALIDER', 'history':'ROLE_AFFICHER_HISTORIQUE_TELETRAVAIL'} %} {% set array_icon = {'mine':'fa-calendar', 'in_progress':'fa-refresh', 'validate':'fa-check', 'history':'fa-database'} %} {% block title %} COSAP - {{ array_title[app.request.get('type')] }} {% endblock %} {% block stylesheets %} {{ parent()}} {% endblock %} {% block body %} {{ parent() }}
{{ array_title[app.request.get('type')] }} {{ list_teletravail.getTotalItemCount }} {% if app.user and app.request.get('type') == 'history' and is_granted('ROLE_EXPORTER_TELETRAVAIL_VERS_EXCEL') %} {% endif %} {% if app.user and app.request.get('type') == 'mine' and app.user.isAutorisateConge and is_granted('ROLE_AJOUTER_TELETRAVAIL_PERSONNEL') %} {% endif %} {% if app.user and app.request.get('type') == 'validate' and is_granted('ROLE_VALIDER_ALL_TELETRAVAIL') and list_teletravail|length %} {% endif %} {% for type in array_type %} {% if app.user and is_granted(array_role[type]) %} {{ array_title[type] }} {% if type == 'validate' %} {% endif %} {% endif %} {% endfor %}
{% if app.request.get('type') == 'mine' or app.request.get('type') == 'history' %}
{% if app.request.get('type') == 'mine' or (app.request.get('type') == 'history' and app.request.get('search_personnel') is not empty) %} Nombre de jours de Télétravail cumulé : {{ cumule_TT }} {% if cumule_TT > 1 %}jours{% else %}jour{% endif %} {% endif %} Recherche avancée

{% if app.request.get('type') == 'mine' %} {{ include('TeleTravailProcess/advanced_search/mine_search.html.twig') }} {% elseif app.request.get('type') == 'history' %} {{ include('TeleTravailProcess/advanced_search/history_search.html.twig') }} {% endif %} {% endif %}
{% if app.request.get('type') == 'mine' %} {{ include('TeleTravailProcess/Tabs/liste_teletravail_mine.html.twig') }} {% elseif app.request.get('type') == 'in_progress' %} {{ include('TeleTravailProcess/Tabs/liste_teletravail_in_progress.html.twig') }} {% elseif app.request.get('type') == 'validate' %} {{ include('TeleTravailProcess/Tabs/liste_teletravail_a_validate.html.twig') }} {% elseif app.request.get('type') == 'history' %} {{ include('TeleTravailProcess/Tabs/liste_teletravail_history.html.twig') }} {% endif %}
{{ include('TeleTravailProcess/Organigramme/organigramme.html.twig') }}
{{ include('TeleTravailProcess/Tracability/tracability.html.twig') }}
{% include('TeleTravailProcess/modals/add_demande_teletravail.html.twig') %} {% include('TeleTravailProcess/modals/validate_all_demandes_teletravail.html.twig') %} {% endblock %} {% block javascripts %} {{ parent() }} {% include('TeleTravailProcess/ajax/add_demande_teletravail.html.twig') %} {% include('TeleTravailProcess/ajax/generate_organigramme.html.twig') %} {% include('TeleTravailProcess/ajax/decision_demande_teletravail.html.twig') %} {% include('TeleTravailProcess/ajax/default_search.html.twig') %} {% include('TeleTravailProcess/ajax/annuler_demande_teletravail.html.twig') %} {% endblock %}