{% extends "base.html.twig" %} {% block localstyle %} th, td { border: 1px solid #37474F; color: #ffffff; background-color: #37474F; text-align: center; width: {% if fgprint %}135px{%else%}115px{%endif%}; padding: 0px; } td { background-color: #e8ecf1; height: 44px; vertical-align: top; font-size: {% if fgprint %}10px{%else%}12px{%endif%}; color: var(--colorftbodylight); {% if fgprint %}color:#000000 !important;{%endif%} } @media print { .noprint { display:none; } body,h1,.card-header {font-family: 'arial' !important} .card {float: none !important; } .card, .card-header {border: none;} .breakpage { page-break-after: always; } .nobreakpage{ page-break-after: unset; } .card-body {padding:0px;} .fulltable{width:100%;} } .date { color: #ffffff; background-color: #37474F; } .nounderline:hover { text-decoration:none; } {% endblock %} {% block body %}

RAPPORT MENSUEL = {{ monthof|date("m/Y") }}

{% if not fgprint %} Retour Mois Précédent Mois Suivant Imprimer Export CSV Gestion des Pointages Gestion Heures Sup {% if message is defined and not message is empty %}
Erreur
{{ message|raw }}
{% endif %} {% endif %}
{% set nbusers=0 %} {% for date in dates %} {% if date.validates %} {% set nbusers=nbusers+1 %}
{% if not fgprint %} {%endif%} {{ date.displayname }}
{{date.timemonth}} / {{ timetowork }}
{% for validate in date.validates %} {% if loop.first or validate.dateof|date("l")=="Monday" %} {% if loop.first %} {% set style = "" %} {% else %} {% set style = "display:none;" %} {% endif %} {% endif %} {% if loop.first and validate.dateof|date("l")!="Monday"%} {% for i in 2..(validate.dateof|date("N")) %} {% endfor %} {%endif %} {% if loop.last or validate.dateof|date("l")=="Sunday"%} {% endif %} {% endfor %}
s L M M J V S D
{{validate.dateof|date("W")}}
{{validate.dateof|date("d/m")}}
{% for tallyday in validate.tallydays %} {% if tallyday.name %} {% if tallyday.datestart|date("H")==10 %} {% set breakdayall=true %} {% endif %} {{tallyday.name}} {% else %} {%if tallyday.datestart %} de {{tallyday.datestart|date("H:i") }} {% endif %} {%if tallyday.dateend %} à {{tallyday.dateend|date("H:i") }} {% endif %} {% if tallyday.istelework %} {% endif %} {% if tallyday.ispenaltypassive %} {% endif %} {% if tallyday.ispenaltyactive %} {% endif %} {%endif%}
{% endfor %}
= {{validate.timeday}}
{%if date.timetelework!="0:00" or date.timepenaltypassive!="0:00" or date.timepenaltyactive!="0:00" %}
{% endif %} {%if date.timetelework!="0:00"%} {%endif%} {%if date.timepenaltypassive!="0:00"%} {%endif%} {%if date.timepenaltyactive!="0:00"%} {%endif%} {%if date.timetelework!="0:00" or date.timepenaltypassive!="0:00" or date.timepenaltyactive!="0:00" %}

Télétravail
{{date.timetelework}}

Astreinte Passive
{{date.timepenaltypassive}}

Astreinte Active
{{date.timepenaltyactive}}
{% endif %}
{% if nbusers==2 %} {% set nbusers=0 %} {% endif %} {% endif %} {% endfor %}
{% endblock %} {% block localjavascript %} $(document).ready(function() { $('#dataTables').DataTable({ columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ], responsive: true, iDisplayLength: 100, paging: false, ordering: false, info: false, searching: false, }); maxheight=0; $( ".card" ).each(function( index ) { if($(this).height()>maxheight) maxheight=$(this).height(); }); $( ".card" ).height(maxheight); $("#btnprint").click(function(){ window.print(); return false; }); }); {% endblock %}