You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
@page "/loginr"
|
|
@inherits LoginModel;
|
|
@using System.ComponentModel.DataAnnotations
|
|
@using System.Web;
|
|
|
|
<EditForm Model="@loginAccountForm" OnValidSubmit="OnPostAsync">
|
|
<DataAnnotationsValidator />
|
|
<MudGrid>
|
|
<MudItem xs="12" sm="7">
|
|
<MudCard>
|
|
@*<DataAnnotationsValidator/>*@
|
|
<ValidationSummary/>
|
|
|
|
<MudCardContent>
|
|
<MudTextField Label="Логин" HelperText="Введите логин"
|
|
@bind-Value="loginAccountForm.Username" For="@(() => loginAccountForm.Username)" />
|
|
<MudTextField Label="Пароль" HelperText="Введите пароль" Class="mt-3"
|
|
@bind-Value="loginAccountForm.Password" For="@(() => loginAccountForm.Password)" InputType="InputType.Password" />
|
|
</MudCardContent>
|
|
<MudCardActions>
|
|
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="Color.Primary" Class="ml-auto">Зарегистрироваться</MudButton>
|
|
</MudCardActions>
|
|
</MudCard>
|
|
</MudItem>
|
|
|
|
</MudGrid>
|
|
</EditForm>
|
|
|
|
@code {
|
|
|
|
} |