{% extends "base.html.twig" %} {% block body %} {% set basePath = path('admin.pointage', { 'sort': sortField, 'order': sortOrder, 'user': userFilter ?? '', 'period': period, 'page': 1 }) %}
{# FILTRES#}
{# Utilisateurs #}
{# Séparateur #}
{# Période#}
{% if dateStartInput and dateEndInput %}
{{ dateStartInput|date('d/m/Y') }} → {{ dateEndInput|date('d/m/Y') }}
Effacer
{% else %} {% endif %}
{# Dates personnalisées #} {% if not dateStartInput or not dateEndInput %}
Du Au
{% endif %}
{# PAGINATION #} {% if (dateStartInput and dateEndInput) == false and period != 'global' %}
« Page {{ page }}
période affichée : {% if period == 'day' %}{{ dateStart|date('d/m/Y') }} {% elseif period == 'week' %}{{ dateStart|date('d/m/Y') }} → {{ dateEnd|date('d/m/Y') }} {% elseif period == 'month' %}{{ dateStart|date('m/Y') }} {% elseif period == 'year' %}{{ dateStart|date('Y') }}{% endif %}
{% endif %} {# Tableau des pointages#}
{% for pointage in pointages %} {% else %} {% endfor %}
Utilisateur Date Entrée Début pause Fin pause Sortie Total Actions
{{ pointage.utilisateur ? pointage.utilisateur.username : 'Utilisateur inconnu' }} {{ pointage.datePointage ? pointage.datePointage|date('d/m/Y') : 'N/A' }} {{ pointage.heureEntree ? pointage.heureEntree|date('H:i') : '—' }} {{ pointage.heureDebutPause ? pointage.heureDebutPause|date('H:i') : '—' }} {{ pointage.heureFinPause ? pointage.heureFinPause|date('H:i') : '—' }} {{ pointage.heureSortie ? pointage.heureSortie|date('H:i') : '—' }} {{ pointage.totalTravailFormatted ?? 'N/A' }} Supprimer
Aucun pointage enregistré
Récapitulatif par utilisateur
{% if recapParUtilisateur|length > 0 %} {% for row in recapParUtilisateur %} {% endfor %} {% else %} {% endif %}
Utilisateur Période Jours travaillés Total
{{ row.user.username }} {% if period == 'global' %} Toute la période {% elseif period == 'day' %} {{ dateStart|date('d/m/Y') }} {% else %} du {{ dateStart|date('d/m/Y') }} au {{ dateEnd|date('d/m/Y') }} {% endif %} {{ row.joursTravailles }} {{ row.totalFormatted }}
Aucun pointage sur la période sélectionnée
{% endblock %}