Alpenwerk HR — HR-Stammdatenverwaltung Mitarbeiter:innen, Organisationsstruktur, Planstellen, Eintritt, Austritt, Versetzung, Beförderung, Karenz, On- und Offboarding, Berichte, Exporte, Massenimport und ein lückenloser Nachweis jeder Änderung. Next.js 16, React 19 und TypeScript; PostgreSQL über Kysely; Anmeldung ausschliesslich über Microsoft Entra ID. Die Fachlogik liegt in der Datenbank, die Zugriffsschranke ist Row Level Security. Betrieb auf Windows Server: siehe deploy/windows/README.md. Sicherheitskonzept: docs/sicherheitskonzept.md.
24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
"use client";
|
|
|
|
import { Field } from "@/components/ui/Field";
|
|
import { Picklist } from "@/components/ui/Picklist";
|
|
import { TITLE_PREFIXES, TITLE_SUFFIXES } from "@/lib/titles";
|
|
|
|
export type TitleValue = { titlePrefix: string[]; titleSuffix: string[] };
|
|
|
|
// Shared by the hire wizard (StepPerson) and DatenAendernPanel — both edit
|
|
// the same title_prefix/title_suffix columns, just against different local
|
|
// state, same pattern as RoleEmploymentFields.
|
|
export function TitleFields({ value, onChange }: { value: TitleValue; onChange: (patch: Partial<TitleValue>) => void }) {
|
|
return (
|
|
<div className="flex flex-col gap-3">
|
|
<Field label="Titel (vorangestellt)" dense>
|
|
{(p) => <Picklist {...p} options={TITLE_PREFIXES} value={value.titlePrefix} onChange={(titlePrefix) => onChange({ titlePrefix })} />}
|
|
</Field>
|
|
<Field label="Titel (nachgestellt)" dense>
|
|
{(p) => <Picklist {...p} options={TITLE_SUFFIXES} value={value.titleSuffix} onChange={(titleSuffix) => onChange({ titleSuffix })} />}
|
|
</Field>
|
|
</div>
|
|
);
|
|
}
|