Checkpoint: Retrait des compteurs dynamiques de taux de présence et ajout d'une vérification backend empêchant l'émargement avant la date de formation concernée
This commit is contained in:
@@ -316,17 +316,6 @@ export default function FormateurEmargement() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Statistiques Matin */}
|
||||
<div className="flex items-center justify-between bg-blue-50 dark:bg-blue-950/20 px-3 py-2 rounded">
|
||||
<span className="text-xs font-medium">🌅 Matin</span>
|
||||
<Badge variant="secondary" className="text-xs">
|
||||
{(() => {
|
||||
const stats = getPresenceStats(date.id, "matin");
|
||||
return `${stats.present}/${stats.total} présents (${stats.percentage}%)`;
|
||||
})()}
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
{/* Matin */}
|
||||
<div className="flex items-center justify-between pl-4">
|
||||
<div className="flex items-center gap-2 flex-1">
|
||||
@@ -387,17 +376,6 @@ export default function FormateurEmargement() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Statistiques Après-midi */}
|
||||
<div className="flex items-center justify-between bg-orange-50 dark:bg-orange-950/20 px-3 py-2 rounded mt-2">
|
||||
<span className="text-xs font-medium">🌆 Après-midi</span>
|
||||
<Badge variant="secondary" className="text-xs">
|
||||
{(() => {
|
||||
const stats = getPresenceStats(date.id, "apres_midi");
|
||||
return `${stats.present}/${stats.total} présents (${stats.percentage}%)`;
|
||||
})()}
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
{/* Après-midi */}
|
||||
<div className="flex items-center justify-between pl-4">
|
||||
<div className="flex items-center gap-2 flex-1">
|
||||
|
||||
Reference in New Issue
Block a user