{% extends "base.html.twig" %} {% block localstyle %} th, td { border: 1px solid #37474F; color: #ffffff; background-color: #37474F; text-align: center; width: 100px; padding: 0px; } td { background-color: #e8ecf1; height: 44px; vertical-align: top; font-size: 12px; color: var(--colorftbodylight); {% if fgprint %}color:#000000 !important;{%endif%} } {% if fgprint %} .card {float: none !important; } .card, .card-header {border: none;} .breakpage { page-break-after: always; } {% endif %} .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 Export PDF Export CSV Gestion des Pointages {% 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 %}
{{ date.displayname }}
{% 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 %} {% if loop.first %} {% for i in 2..(validate.dateof|date("N")) %} {% endfor %} {%endif %} {% 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.isbreakday %} {% 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 %} {%endif%}
{% endfor %}
= {{validate.timeday}}
{% 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); }); {% endblock %}