From 71d610ff4b482921fd91c4f892b097d991833b5b Mon Sep 17 00:00:00 2001 From: Lyndon Date: Thu, 4 Dec 2025 20:47:49 +0100 Subject: [PATCH] Unterschriftenfeld gefixt. Ziele sind automatisch aufgeklappt, wenn weniger als 11 angezeigt werden. --- .../Views/Main/GoalTreePartial.cshtml | 2 +- .../Views/Main/SingleBookingPartial.cshtml | 4 + .../Main/SingleSignaturePopupPartial.cshtml | 171 ++++++++++-------- 3 files changed, 102 insertions(+), 75 deletions(-) diff --git a/BeWoPlanerMobil/Views/Main/GoalTreePartial.cshtml b/BeWoPlanerMobil/Views/Main/GoalTreePartial.cshtml index 9d0511c2c..8130774be 100644 --- a/BeWoPlanerMobil/Views/Main/GoalTreePartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/GoalTreePartial.cshtml @@ -159,7 +159,7 @@ @helper BuildGoalTreeBranch(GoalTreeItem goalTreeItem) { - var collapseClass = Model.GoalTree.Count <= 30 ? "collapse show" : "collapse"; + var collapseClass = Model.GoalTree.Count <= 10 ? "collapse show" : "collapse"; var isChecked = Model.SelectedGoals.Any(a => a.ValueListEntryOid.HasValue && a.ValueListEntryOid.Value == goalTreeItem.ValueListEntryOid); var isCheckedValue = isChecked ? "checked" : string.Empty; diff --git a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml index 5792e691b..ff9c02031 100644 --- a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml @@ -319,6 +319,10 @@
+ @*
+ + +
*@
@Html.Partial("GoalTreePartial", Model)
diff --git a/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml b/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml index f2096635c..3149a1731 100644 --- a/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml @@ -2,6 +2,17 @@ @using BS.Shared @model BeWoPlanerMobil.Models.MainModel + + @if(Model.ServiceRecord2Monatsunterschrift is null) @@ -207,84 +234,80 @@ else var info = $"{nameAndDateOfBirth} | {supportConceptTimeSpan}"; - var klient = Model.ServiceRecord2Monatsunterschrift.ServiceRecord.Customer.Sex == Sex.Male ? "Klient" : "Klientin"; -
-