{% extends "base.html.twig" %} {% block localstyle %} th, td { border: 1px solid #37474F; color: #ffffff; background-color: #37474F; text-align: center; width: 100px; } td { background-color: #e8ecf1; height: 44px; vertical-align: top; font-size: 12px; color: var(--colorftbodylight); } .date { color: #ffffff; background-color: #37474F; } .nounderline:hover { text-decoration:none; } {% endblock %} {% block body %}

GESTION DES POINTAGES

Retour Export CSV Rapport Mensuel {% if message is defined and not message is empty %}
Erreur
{{ message|raw }}
{% endif %}
{% for date in dates %} {% if date.validates or date.notvalidates %}
{{ date.displayname }} Capital = {{date.capitaltime}}
{% if date.validates %} {% for validate in date.validates %} {% if loop.first %} {% endif %} {% endfor %} {% endif %} {% if date.notvalidates %} {% for notvalidate in date.notvalidates %} {% if loop.first or notvalidate.dateof|date("l")=="Monday" %} {% if loop.first %} {% set style = "" %} {% else %} {% set style = "display:none;" %} {% endif %} {% endif %} {% if loop.last or notvalidate.dateof|date("l")=="Sunday"%} {% endif %} {% endfor %} {% endif %}
s L M M J V S D
{{validate.dateof|date("W")}}
=
{{validate.timeweek }}
{{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}}
{{notvalidate.dateof|date("W")}}
=
{{notvalidate.timeweek }}
{{notvalidate.dateof|date("d/m")}}
{% set breakdayall=false %} {% for tallyday in notvalidate.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 %}
{% if not breakdayall %} {% endif %}
= {{notvalidate.timeday}}
{% 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); }); function validateweek(userid,weekday) { $('body').css('cursor', 'wait'); console.log(userid+" "+weekday); url="{{path("app_tallyday_mastervalidate",{userid:'xxx',weekday:'yyy'})}}" url=url.replace("xxx",userid); url=url.replace("yyy",weekday); $.ajax({ method: "POST", url: url, success: function(data, dataType) { if(data.success) { $(".devalidate-"+userid).remove(); url="{{path("app_tallyday_masterdevalidate",{userid:'xxx',weekday:'yyy'})}}" url=url.replace("xxx",userid); url=url.replace("yyy",weekday); html=''; $("#"+userid+"-"+weekday).replaceWith(html); $("[data-user='"+userid+"']").first().show(); } else alert(data.message); $('body').css('cursor', 'default'); }, }); } {% endblock %}