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> <CardContent>
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 0.5 }}>
Lehrgang
</Typography>
<FieldRow <FieldRow
label="Lehrgang" label="Bestanden"
value={ value={
atemschutz.atemschutz_lehrgang 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' : 'Nein'
} }
/> />
<FieldRow
label="Datum"
value={atemschutz.lehrgang_datum
? new Date(atemschutz.lehrgang_datum).toLocaleDateString('de-AT')
: null}
/>
<Divider sx={{ my: 1.5 }} /> <Divider sx={{ my: 1.5 }} />
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 0.5 }}> <Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 0.5 }}>