Add educator email invitations and staff notification preferences

This commit is contained in:
t.indorf
2026-10-08 11:32:38 +02:00
parent 043fed2e46
commit 90b8843cda
15 changed files with 700 additions and 39 deletions
+15
View File
@@ -29,6 +29,7 @@ import { DeleteAccountDialog } from "./_components/delete-account-dialog";
import { MyChildrenManager } from "./_components/my-children-manager";
import { CreateFamilyDialog } from "./_components/create-family-dialog";
import { ContactForm } from "./_components/contact-form";
import { StaffEmailSettings } from "../personal/forms";
export const metadata = { title: "Mein Profil · Kita-Planer" };
@@ -54,6 +55,7 @@ export default async function ProfilPage() {
postalCode: true,
city: true,
directoryOptInAt: true,
staffDecisionEmails: true,
createdAt: true,
family: {
select: {
@@ -208,6 +210,19 @@ export default async function ProfilPage() {
</CardContent>
</Card>
{user.role === UserRole.ERZIEHER && (
<Card>
<CardHeader>
<CardTitle>E-Mail-Hinweise</CardTitle>
<CardDescription>
Benachrichtigungen aus dem Personalbereich.
</CardDescription>
</CardHeader>
<CardContent>
<StaffEmailSettings enabled={user.staffDecisionEmails} />
</CardContent>
</Card>
)}
{user.role !== UserRole.ERZIEHER && (
<>
<Card>