style(frontend): format Lehrgang section in member detail to match other Atemschutz sub-sections
This commit is contained in:
@@ -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 }}>
|
||||
|
||||
Reference in New Issue
Block a user