feat : ajout d'un onglet formation
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-04-13 09:41:36 +02:00
parent b185accdbb
commit 4cd30de3e3
29 changed files with 1244 additions and 36 deletions

View File

@@ -84,6 +84,11 @@
background: #b3e5fc;
}
.formation {
background: #6366f1;
color: #fff;
}
.body-cell {
height: 6mm;
padding: 0 !important;
@@ -239,11 +244,15 @@
{% for day in days %}
{% set isHoliday = holidayMap[day.date] ?? null %}
{% set info = absenceMap[employee.id][day.date] ?? null %}
{% set hasFormation = formationMap[employee.id][day.date] ?? false %}
{% set isFormationOnly = hasFormation and not info and not isHoliday %}
{% set isMonthEnd = (not loop.last) and (days[loop.index].date|date('n') != day.date|date('n')) %}
{% set isWeekend = day.date|date('N') in [6, 7] %}
<td class="col-day body-cell{% if isMonthEnd %} month-separator{% endif %}{% if isWeekend %} weekend{% endif %}{% if isHoliday %} holiday{% endif %}" style="width: {{ dayColWidthMm }}mm;{% if info and not isHoliday and not info.half %} background-color: {{ info.color }};{% endif %}">
<td class="col-day body-cell{% if isMonthEnd %} month-separator{% endif %}{% if isWeekend %} weekend{% endif %}{% if isHoliday %} holiday{% endif %}{% if isFormationOnly %} formation{% endif %}" style="width: {{ dayColWidthMm }}mm;{% if info and not isHoliday and not info.half %} background-color: {{ info.color }};{% endif %}">
{% if isHoliday %}
<span class="full-cell code">Férié</span>
{% elseif isFormationOnly %}
<span class="full-cell code">F</span>
{% elseif info %}
{% if info.half %}
<table class="half-table">
@@ -259,7 +268,7 @@
</tr>
</table>
{% else %}
<span class="full-cell code">{{ info.code }}</span>
<span class="full-cell code">{{ info.code }}{% if hasFormation %}*{% endif %}</span>
{% endif %}
{% endif %}
</td>