GuestLog - Small improvements and changes in localization for DataLists.

This commit is contained in:
2026-07-29 14:46:06 +02:00
parent e7e9fb1d12
commit 5061f9362b
9 changed files with 464 additions and 283 deletions
@@ -7,7 +7,7 @@
@inject NavigationManager Navigation
@inject ISnackbar Snackbar
@inject IDialogService DialogService
@inject IStringLocalizer<LanguageLocale> Lang
@inject IDataListService dataListService;
<PageTitle>Somnia - Guest Docs</PageTitle>
@@ -46,13 +46,15 @@
</MudStack>
</ToolBarContent>
<Columns>
<PropertyColumn Property="x => x.DocumentType" Hideable="false"
Title="@LanguageLocale.dto_GuestDocument_DocumentType" />
<PropertyColumn Title="@LanguageLocale.dto_GuestDocument_DocumentType"
Property="x => dataListService.GetLocalizedValue(GuestConsts.DataList_DocumentTypes, x.DocumentType)"
Hideable="false" />
<PropertyColumn Property="x => x.DocumentNum" Hideable="false"
Title="@LanguageLocale.dto_GuestDocument_DocumentNum" />
<PropertyColumn Property="x => x.Name" Title="@LanguageLocale.dto_GuestDocument_Name" />
<PropertyColumn Property="x => x.Surname" Title="@LanguageLocale.dto_GuestDocument_Surname" />
<PropertyColumn Property="x => x.Nationality" Title="@LanguageLocale.dto_GuestDocument_Surname2" />
<PropertyColumn Title="@LanguageLocale.dto_GuestDocument_Nationality"
Property="x => dataListService.GetLocalizedValue(GuestConsts.DataList_CountryCodes, x.Nationality)" />
<PropertyColumn Property="x => x.UpdateTime" Title="@LanguageLocale.dto_GuestDocument_UpdateTime" />
<TemplateColumn CellClass="d-flex justify-between" Title="Options" StickyRight Hideable="false"