Dashboard und Schnellnavigation fix

This commit is contained in:
2026-08-29 19:35:05 +02:00
parent 7d3d021d09
commit b7a105af73
18 changed files with 368 additions and 31 deletions
@@ -17,7 +17,7 @@ public record StudentOption(Guid Id, string Name);
public static class DocumentationTypeDisplay
{
public static string[] Options { get; } =
["Gespräch", "Vorkommnis", "Förderplan", "Fehlzeit", "Elternanruf", "Elternbrief"];
["Gespräch", "Vorkommnis", "Förderplan", "Fehlzeit", "Elternanruf", "Elternbrief", "Planung / Erinnerung"];
public static string Label(DocumentationType t) => t switch
{
@@ -27,6 +27,7 @@ public static class DocumentationTypeDisplay
DocumentationType.Absence => "Fehlzeit",
DocumentationType.ParentCall => "Elternanruf",
DocumentationType.ParentLetter => "Elternbrief",
DocumentationType.Planning => "Planung / Erinnerung",
_ => "",
};
@@ -37,6 +38,7 @@ public static class DocumentationTypeDisplay
"Fehlzeit" => DocumentationType.Absence,
"Elternanruf" => DocumentationType.ParentCall,
"Elternbrief" => DocumentationType.ParentLetter,
"Planung / Erinnerung" => DocumentationType.Planning,
_ => DocumentationType.Conversation,
};
}
@@ -301,7 +303,7 @@ public partial class DocumentationDialogViewModel : ObservableObject
LetterSentDateError = ""; LetterResponseDateError = "";
var valid = true;
if (CanPickStudent && SelectedStudent is null) { StudentError = "Schüler auswählen."; valid = false; }
if (CanPickStudent && SelectedStudent is null) { StudentError = "Bezug auswählen."; valid = false; }
if (string.IsNullOrWhiteSpace(Title)) { TitleError = "Titel erforderlich."; valid = false; }