feat: add date_of_birth field to persons across all layers

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 09:06:29 +02:00
parent d2f282eb4c
commit 6dccf87234
18 changed files with 161 additions and 17 deletions

View File

@@ -37,10 +37,20 @@ const dateFormatter = new Intl.DateTimeFormat('nl-NL', {
year: 'numeric',
})
const dobFormatter = new Intl.DateTimeFormat('nl-NL', {
day: 'numeric',
month: 'long',
year: 'numeric',
})
function formatDate(iso: string) {
return dateFormatter.format(new Date(iso))
}
function formatDateOfBirth(dateStr: string) {
return dobFormatter.format(new Date(`${dateStr}T00:00:00`))
}
function getInitials(name: string) {
return name
.split(' ')
@@ -175,6 +185,17 @@ function onBlacklistToggle(val: boolean | null) {
<!-- Tab: Informatie -->
<VTabsWindowItem value="info">
<VList class="pa-0">
<VListItem>
<template #prepend>
<VIcon
icon="tabler-cake"
class="me-3"
/>
</template>
<VListItemTitle>Geboortedatum</VListItemTitle>
<VListItemSubtitle>{{ person.date_of_birth ? formatDateOfBirth(person.date_of_birth) : 'Niet opgegeven' }}</VListItemSubtitle>
</VListItem>
<VListItem>
<template #prepend>
<VIcon