style(frontend): format Lehrgang section in member detail to match other Atemschutz sub-sections

This commit is contained in:
Matthias Hochmeister
2026-04-20 11:53:48 +02:00
parent 99792d93dd
commit 65820805b0

View File

@@ -955,14 +955,23 @@ function MitgliedDetail() {
}
/>
<CardContent>
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 0.5 }}>
Lehrgang
</Typography>
<FieldRow
label="Lehrgang"
label="Bestanden"
value={
atemschutz.atemschutz_lehrgang
? `Ja${atemschutz.lehrgang_theorie_only ? ' (nur Theorie)' : ''}${atemschutz.lehrgang_datum ? ` (${new Date(atemschutz.lehrgang_datum).toLocaleDateString('de-AT')})` : ''}`
? `Ja${atemschutz.lehrgang_theorie_only ? ' (nur Theorie)' : ''}`
: 'Nein'
}
/>
<FieldRow
label="Datum"
value={atemschutz.lehrgang_datum
? new Date(atemschutz.lehrgang_datum).toLocaleDateString('de-AT')
: null}
/>
<Divider sx={{ my: 1.5 }} />
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 0.5 }}>