This commit is contained in:
Manus
2026-01-27 08:14:31 -05:00
parent 6c48a8fae0
commit 5821f82eb2
3 changed files with 14 additions and 32 deletions

View File

@@ -269,8 +269,9 @@ export default function FormateurEmargement() {
const presenceInfo = getPresenceInfo(inscrit.inscription.id, date.id, "matin");
if (presenceInfo) {
return (
<div className="flex items-center gap-2 ml-3 text-xs text-muted-foreground">
<span>{inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} a validé(e) le {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", {
<div className="flex items-center gap-2 ml-2 text-xs text-muted-foreground">
<span>{inscrit.apprenant?.prenom} {inscrit.apprenant?.nom}</span>
<span>• {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", {
day: "2-digit",
month: "2-digit",
year: "numeric",
@@ -281,14 +282,13 @@ export default function FormateurEmargement() {
<Button
size="sm"
variant="ghost"
className="h-6 w-6 p-0 hover:bg-blue-100"
className="h-5 w-5 p-0"
onClick={() => {
setSelectedSignature(presenceInfo.signatureUrl!);
setShowSignatureDialog(true);
}}
title="Voir la signature"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="h-5 w-5 text-blue-600">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="h-4 w-4 text-blue-600">
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
</svg>
</Button>
@@ -329,8 +329,9 @@ export default function FormateurEmargement() {
const presenceInfo = getPresenceInfo(inscrit.inscription.id, date.id, "apres_midi");
if (presenceInfo) {
return (
<div className="flex items-center gap-2 ml-3 text-xs text-muted-foreground">
<span>{inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} a validé(e) le {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", {
<div className="flex items-center gap-2 ml-2 text-xs text-muted-foreground">
<span>{inscrit.apprenant?.prenom} {inscrit.apprenant?.nom}</span>
<span>• {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", {
day: "2-digit",
month: "2-digit",
year: "numeric",
@@ -341,14 +342,13 @@ export default function FormateurEmargement() {
<Button
size="sm"
variant="ghost"
className="h-6 w-6 p-0 hover:bg-blue-100"
className="h-5 w-5 p-0"
onClick={() => {
setSelectedSignature(presenceInfo.signatureUrl!);
setShowSignatureDialog(true);
}}
title="Voir la signature"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="h-5 w-5 text-blue-600">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="h-4 w-4 text-blue-600">
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
</svg>
</Button>