{% if planning %}Modifier{% else %}Ajouter{% endif %} un planning
{% if isFixedOffDay %}
Cette journee est un repos fixe pour cet employe. Aucun creneau ne peut y etre ajoute.
{% endif %} {% if not hasActiveContract %}
Aucun contrat n est en cours pour cet employe a cette date. La planification est bloquee.
{% endif %} {% set isPast = date < "now"|date("Y-m-d") %} {% set standardOffTypes = ['repos', 'formation', 'Congés payés', 'vacances', 'Maladie', 'maladie', 'Congé spécial', 'congespecial', 'Congé maternité', 'congemat', 'Congé paternité', 'congepat'] %} {% set customOffTypeValue = planning and planning.offType and planning.offType not in standardOffTypes ? planning.offType : '' %}
{% if not planning and dayPlannings is not empty %}
Déjà planifié ce jour :
{% for slot in dayPlannings %} {% if slot.type == 'off' %} {{ slot.offType }} {% else %} {{ slot.heureDebut|date('H:i') }} - {{ slot.heureFin|date('H:i') }} {% endif %} {% endfor %}
{% endif %}
{% if not planning %} {% endif %}
{% if not planning %} {% endif %}
{% set jours = [ {'label':'Lun','val':1}, {'label':'Mar','val':2}, {'label':'Mer','val':3}, {'label':'Jeu','val':4}, {'label':'Ven','val':5}, {'label':'Sam','val':6}, {'label':'Dim','val':7} ] %} {% for jour in jours %} {% endfor %}
{% if planning %} {% endif %}