{% extends "base.html.twig" %} {% block localstyle %} .card { margin: 20px 20px 0px 0px; } .card-body .month { margin: 20px 0px 0px 0px; } .card-body .month:first-child { margin: 0px; } .card-header h2 { float:left; } .card-header .synthese { float:right; font-size:12px; text-align: right; } th,td { border: 1px solid #37474F; color: #000000; background-color:#cccccc; } .intervenant { width:200px; padding-left:5px; } .total { text-align:center; width:70px; background-color:#888888; } .day { text-align:center; width: 40px; height:40px; } .astreinte { height: 12px; font-size: 10px; } {% if fgprint is defined and fgprint %} h2, h3 { display:block !important; float:none !important; } table { width:100%; font-size:10px;} .card-header .synthese { float:none !important; text-align:left !important; } .day { height:auto !important; } {% endif %} {% endblock %} {% block body %} {% if fgprint is defined and fgprint %}

Planning

{%endif%} {% if access=="customer" and not app.user %}
Rapport Planning   Nombre de mois
{% endif %} {% for project in projects %} {% if not project.months is empty %}

{{ project.displayname }}

Estimé = {{ project.estimate }}
Validé = {{ project.validate }}
Planifié = {{ project.planified }}
RESTE = {{ (project.estimate - project.validate - project.planified) }}
{% set month="" %} {% for month in project.months %}

{{ month.monthlabel }}

{% for day in month.days %} {% endfor %} {% for user in month.users %} {% for day in user.days %} {% endfor %} {% endfor %}
Intervenant {{ day.daylabel }}
{{ day.daynumber }}
Total
{{ user.displayname }} {% if day.duration > 0 %} {{ day.duration }} {% endif %} {% if day.astreinte > 0 %}
A
{% endif %}
{{user.total}}
{% if month.total > 0 %} Total = {{ month.total }} {% endif %} {% if month.totala > 0 %} Total Astreinte = {{ month.totala }} {% endif %}
 
{% endfor %}
{% endif %} {% endfor %}
{% endblock %} {% block localjavascript %} function myprint() { href=document.location.href; document.location.href=href+"?fgprint=true"; } {% endblock %}