Urlaubsantrag am Handy, Entscheidung mit Antwort, Hinweis in der Übersicht (0.11.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-20 06:59:26 +00:00
parent 8634791c68
commit dd57169e9a
10 changed files with 360 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
import { formatEuro } from "../domain/geld.js";
import { ABWESENHEIT_TEXT, modellText, type AbwesenheitArt } from "../domain/personal.js";
import { type Feld, type Zeile, api, dat, dialog, esc, heute, inhalt, seite, tabelle } from "./ui.js";
import { entscheiden } from "./urlaub.js";
const WT = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"];
const zahl = (h: number | null | undefined) => (h == null ? "" : String(Math.round(h * 100) / 100).replace(".", ","));
@@ -118,9 +119,9 @@ export async function mitarbeiterSeite(kontaktId: string, inhaber: boolean): Pro
{ titel: "Art", wert: (a) => esc(ABWESENHEIT_TEXT[a.art as AbwesenheitArt]) },
{ titel: "Zeitraum", wert: (a) => (a.von === a.bis ? `${WT[wtag(a.von)]} ${dat(a.von)}` : `${dat(a.von)} – ${dat(a.bis)}`) },
{ titel: "Umfang", wert: (a) => (a.halbtag ? "halber Tag" : a.stunden ? `${zahl(a.stunden)} Std.` : "ganztags") },
{ titel: "Status", wert: (a) => `<span class="marke ${a.status === "genehmigt" ? "gut" : a.status === "beantragt" ? "offen" : "grau"}">${esc(a.status)}</span>` },
{ titel: "Status", wert: (a) => `<span class="marke ${a.status === "genehmigt" ? "gut" : a.status === "beantragt" ? "offen" : "grau"}">${a.status === "beantragt" ? "beantragt, entscheiden" : esc(a.status)}</span>` },
{ titel: "Notiz", wert: (a) => esc(a.notiz ?? ""), klasse: "optional" },
], eigeneAbw, (a) => void abwDialog(a)));
], eigeneAbw, (a) => void (a.status === "beantragt" && a.art === "urlaub" ? entscheiden(a.id).then((ja) => { if (ja) void neuLaden(); }) : abwDialog(a))));
else aZiel.innerHTML = '<p class="hinweis">Keine Abwesenheiten eingetragen.</p>';
// ---------- Dialoge ----------