|
|
@ -44,16 +44,17 @@ |
|
|
@* ************************* CREATE DIALOG ************************* *@ |
|
|
@* ************************* CREATE DIALOG ************************* *@ |
|
|
@if (HasCreatePermission) |
|
|
@if (HasCreatePermission) |
|
|
{ |
|
|
{ |
|
|
<MudDialog @ref="_createDialog" Options="@CreateDialogOptions"> |
|
|
<MudDialog DefaultFocus="DefaultFocus.None" @ref="_createDialog" Options="@CreateDialogOptions"> |
|
|
<TitleContent> |
|
|
<TitleContent> |
|
|
<MudText Typo="Typo.h6">@L["NewUser"]</MudText> |
|
|
<MudText Typo="Typo.h6">@L["NewUser"]</MudText> |
|
|
</TitleContent> |
|
|
</TitleContent> |
|
|
<DialogContent> |
|
|
<DialogContent> |
|
|
<MudForm @ref="@CreateFormRef" Model="@NewEntity"> |
|
|
<MudForm @ref="@CreateFormRef" Model="@NewEntity"> |
|
|
<MudTabs @bind-ActivePanelIndex="@_createTabIndex" PanelClass="pa-4"> |
|
|
<MudTabs @bind-ActivePanelIndex="@_createTabIndex" PanelClass="pa-4" KeepPanelsAlive="true"> |
|
|
<MudTabPanel Text="@L["UserInformations"]"> |
|
|
<MudTabPanel Text="@L["UserInformations"]"> |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@NewEntity.UserName" |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@NewEntity.UserName" |
|
|
Label="@L["DisplayName:UserName"]" |
|
|
Label="@L["DisplayName:UserName"]" |
|
|
|
|
|
AutoFocus="true" |
|
|
Required="true" |
|
|
Required="true" |
|
|
RequiredError="@L["The {0} field is required.", L["DisplayName:UserName"]]" /> |
|
|
RequiredError="@L["The {0} field is required.", L["DisplayName:UserName"]]" /> |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@NewEntity.Name" |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@NewEntity.Name" |
|
|
@ -108,17 +109,18 @@ |
|
|
@* ************************* EDIT DIALOG ************************* *@ |
|
|
@* ************************* EDIT DIALOG ************************* *@ |
|
|
@if (HasUpdatePermission) |
|
|
@if (HasUpdatePermission) |
|
|
{ |
|
|
{ |
|
|
<MudDialog @ref="_editDialog" Options="@EditDialogOptions"> |
|
|
<MudDialog DefaultFocus="DefaultFocus.None" @ref="_editDialog" Options="@EditDialogOptions"> |
|
|
<TitleContent> |
|
|
<TitleContent> |
|
|
<MudText Typo="Typo.h6">@L["Edit"]</MudText> |
|
|
<MudText Typo="Typo.h6">@L["Edit"]</MudText> |
|
|
</TitleContent> |
|
|
</TitleContent> |
|
|
<DialogContent> |
|
|
<DialogContent> |
|
|
<MudForm @ref="@EditFormRef" Model="@EditingEntity"> |
|
|
<MudForm @ref="@EditFormRef" Model="@EditingEntity"> |
|
|
<input type="hidden" @bind-value="@EditingEntity.ConcurrencyStamp" /> |
|
|
<input type="hidden" @bind-value="@EditingEntity.ConcurrencyStamp" /> |
|
|
<MudTabs @bind-ActivePanelIndex="@_editTabIndex" PanelClass="pa-4"> |
|
|
<MudTabs @bind-ActivePanelIndex="@_editTabIndex" PanelClass="pa-4" KeepPanelsAlive="true"> |
|
|
<MudTabPanel Text="@L["UserInformations"]"> |
|
|
<MudTabPanel Text="@L["UserInformations"]"> |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@EditingEntity.UserName" |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@EditingEntity.UserName" |
|
|
Label="@L["DisplayName:UserName"]" |
|
|
Label="@L["DisplayName:UserName"]" |
|
|
|
|
|
AutoFocus="true" |
|
|
Required="true" |
|
|
Required="true" |
|
|
RequiredError="@L["The {0} field is required.", L["DisplayName:UserName"]]" /> |
|
|
RequiredError="@L["The {0} field is required.", L["DisplayName:UserName"]]" /> |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@EditingEntity.Name" |
|
|
<MudTextField Margin="Margin.Dense" @bind-Value="@EditingEntity.Name" |
|
|
|