fixed missing DataAnnotationValidator in AboutMe
This commit is contained in:
parent
428b462371
commit
8371f131b9
|
@ -7,17 +7,18 @@
|
|||
@inject IStringLocalizer<Wave.Components.Account.Pages.Manage.Index> Localizer
|
||||
|
||||
<EditForm FormName="about-me" Model="@Model" OnValidSubmit="OnValidSubmit" method="post" class="w-full">
|
||||
<DataAnnotationsValidator />
|
||||
<label class="form-control w-full">
|
||||
<div class="label">
|
||||
<span class="label-text">
|
||||
@Localizer["AboutTheAuthor_Label"]
|
||||
<HelpDropdownComponent Body="@Localizer["AboutTheAuthor_Explanation"]" />
|
||||
<HelpDropdownComponent Body="@Localizer["AboutTheAuthor_Explanation"]"/>
|
||||
</span>
|
||||
</div>
|
||||
<InputTextArea class="textarea textarea-bordered w-full h-24" maxlength="512"
|
||||
@bind-Value="@Model.AboutTheAuthor" placeholder="@Localizer["AboutTheAuthor_Placeholder"]" />
|
||||
@bind-Value="@Model.AboutTheAuthor" placeholder="@Localizer["AboutTheAuthor_Placeholder"]"/>
|
||||
<div class="label">
|
||||
<span class="label-text-alt text-error"><ValidationMessage For="() => Model.AboutTheAuthor" /></span>
|
||||
<span class="label-text-alt text-error"><ValidationMessage For="() => Model.AboutTheAuthor"/></span>
|
||||
</div>
|
||||
</label>
|
||||
<label class="form-control w-full">
|
||||
|
@ -25,13 +26,13 @@
|
|||
<span class="label-text">
|
||||
@Localizer["Biography_Label"]
|
||||
<span class="badge badge-info badge-sm badge-outline">Markdown</span>
|
||||
<HelpDropdownComponent Body="@Localizer["Biography_Explanation"]" />
|
||||
<HelpDropdownComponent Body="@Localizer["Biography_Explanation"]"/>
|
||||
</span>
|
||||
</div>
|
||||
<InputTextArea class="textarea textarea-bordered w-full h-48" maxlength="4096"
|
||||
@bind-Value="@Model.Biography" placeholder="@Localizer["Biography_Placeholder"]" />
|
||||
@bind-Value="@Model.Biography" placeholder="@Localizer["Biography_Placeholder"]"/>
|
||||
<div class="label">
|
||||
<span class="label-text-alt text-error"><ValidationMessage For="() => Model.Biography" /></span>
|
||||
<span class="label-text-alt text-error"><ValidationMessage For="() => Model.Biography"/></span>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
|
|
Loading…
Reference in a new issue