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
|
@inject IStringLocalizer<Wave.Components.Account.Pages.Manage.Index> Localizer
|
||||||
|
|
||||||
<EditForm FormName="about-me" Model="@Model" OnValidSubmit="OnValidSubmit" method="post" class="w-full">
|
<EditForm FormName="about-me" Model="@Model" OnValidSubmit="OnValidSubmit" method="post" class="w-full">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
<label class="form-control w-full">
|
<label class="form-control w-full">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<span class="label-text">
|
<span class="label-text">
|
||||||
@Localizer["AboutTheAuthor_Label"]
|
@Localizer["AboutTheAuthor_Label"]
|
||||||
<HelpDropdownComponent Body="@Localizer["AboutTheAuthor_Explanation"]" />
|
<HelpDropdownComponent Body="@Localizer["AboutTheAuthor_Explanation"]"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<InputTextArea class="textarea textarea-bordered w-full h-24" maxlength="512"
|
<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">
|
<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>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
<label class="form-control w-full">
|
<label class="form-control w-full">
|
||||||
|
@ -25,13 +26,13 @@
|
||||||
<span class="label-text">
|
<span class="label-text">
|
||||||
@Localizer["Biography_Label"]
|
@Localizer["Biography_Label"]
|
||||||
<span class="badge badge-info badge-sm badge-outline">Markdown</span>
|
<span class="badge badge-info badge-sm badge-outline">Markdown</span>
|
||||||
<HelpDropdownComponent Body="@Localizer["Biography_Explanation"]" />
|
<HelpDropdownComponent Body="@Localizer["Biography_Explanation"]"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<InputTextArea class="textarea textarea-bordered w-full h-48" maxlength="4096"
|
<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">
|
<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>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue