Das Mehrfachbuchungsformular hat ebenfalls die Schnittmenge der Leistungen und Kategorien von den ausgewählten Hilfeplänen. Das Caching ist wieder aktiviert. Und lädt pro Post-Aufruf nur noch einmal 13 MB und danach nur noch 300 kb herunter. Überall konsequent geprüft, ob das Model nicht null ist und falls dem so ist, wird ausgeloggt, damit es zu keinen Fehlern mehr kommt.
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
@using BeWoPlanerMobil.Util
|
|
@model BeWoPlanerMobil.Models.MainModel
|
|
|
|
@{
|
|
if(TempData[TempDataConstants.DoLogoutKey] is bool doLogout && doLogout)
|
|
{
|
|
<text>
|
|
<script type="text/javascript">
|
|
$("#second-logout-form").submit();
|
|
</script>
|
|
</text>
|
|
}
|
|
}
|
|
|
|
@helper BuildTextModuleTree(TextbausteinDisplayItem textModule)
|
|
{
|
|
if(textModule.IsParent)
|
|
{
|
|
<a href="#" class="list-group-item list-group-item-action mx-0 px-1" onclick="textCategoryOnClick('@textModule.Oid')">
|
|
<span id="@textModule.Oid-icon-span" class="fas fa-angle-up mr-1"></span>
|
|
@textModule.Name
|
|
</a>
|
|
<div id="@textModule.Oid-children-container" style="display: none;" class="list-group list-group-item mx-0 px-1">
|
|
@foreach(var childTextModule in textModule.Children)
|
|
{
|
|
@BuildTextModuleTree(childTextModule)
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<a href="#" id="@textModule.Oid" class="list-group-item list-group-item-action mx-0 px-1" onclick="textModuleOnClick('@textModule.Oid')">
|
|
@textModule.Name
|
|
</a>
|
|
}
|
|
}
|
|
|
|
@if(Model?.TextModules?.Any() ?? false)
|
|
{
|
|
<script>
|
|
$("#textmodule-container").show();
|
|
</script>
|
|
|
|
<div class="list-group">
|
|
@foreach(var textModule in Model.TextModules)
|
|
{
|
|
@BuildTextModuleTree(textModule)
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<script>
|
|
$("#textmodule-container").hide();
|
|
</script>
|
|
} |