fix(web-client): split DisplayName into FirstName/LastName for registration

This commit is contained in:
Ho Ngoc Hai
2026-02-28 04:03:04 +07:00
parent 1caaf5e1e4
commit 1e211dec27
6 changed files with 62 additions and 22 deletions

View File

@@ -22,14 +22,25 @@
<EditForm Model="@registerModel" OnValidSubmit="HandleRegister" FormName="RegisterForm">
<DataAnnotationsValidator />
<div class="form-group">
<label for="reg-name">@L["Auth_Register_DisplayName"] *</label>
<InputText id="reg-name"
@bind-Value="registerModel.DisplayName"
class="form-input"
placeholder="John Doe"
autocomplete="name" />
<ValidationMessage For="() => registerModel.DisplayName" class="validation-message" />
<div class="form-row">
<div class="form-group">
<label for="reg-lastname">@L["Auth_Register_LastName"] *</label>
<InputText id="reg-lastname"
@bind-Value="registerModel.LastName"
class="form-input"
placeholder="Nguyễn"
autocomplete="family-name" />
<ValidationMessage For="() => registerModel.LastName" class="validation-message" />
</div>
<div class="form-group">
<label for="reg-firstname">@L["Auth_Register_FirstName"] *</label>
<InputText id="reg-firstname"
@bind-Value="registerModel.FirstName"
class="form-input"
placeholder="Văn A"
autocomplete="given-name" />
<ValidationMessage For="() => registerModel.FirstName" class="validation-message" />
</div>
</div>
<div class="form-group">