Enhance Prospect display in ProspectContainer.razor to show warning for missing name and format FsId

This commit is contained in:
troogs
2026-04-16 16:59:04 +02:00
parent 76c3e6ddde
commit ee967cd046
2 changed files with 18 additions and 3 deletions

View File

@@ -12,8 +12,23 @@
<div class="@divClass"> <div class="@divClass">
<h5 class="mb-2 d-flex"> <h5 class="mb-2 d-flex">
<div class="flex-grow-1"> <div class="flex-grow-1">
@Prospect?.Name @if(string.IsNullOrWhiteSpace(Prospect?.Name))
<small style="font-size: .9rem;">@Prospect?.FsId</small> {
<i class="fa-solid fa-exclamation-triangle text-warning"></i>
<doublearrows></doublearrows>
<em>»Name fehlt«</em>
}
else
{
@Prospect?.Name
}
@if (Prospect?.FsId != null && Prospect.FsId != 0)
{
<small style="font-size: .9rem; margin-left: 0.5rem;">@Prospect?.FsId</small>
}
</div> </div>
<div> <div>
@if (CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador)) @if (CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador))

View File

@@ -1 +1 @@
20260410 20260416