source: PostgreSqlDotnetCore/Areas/Identity/Pages/Account/Manage/Email.cshtml

main
Last change on this file was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago

init commit Elena

  • Property mode set to 100644
File size: 2.0 KB
Line 
1@page
2@model EmailModel
3@{
4 ViewData["Title"] = "Manage Email";
5 ViewData["ActivePage"] = ManageNavPages.Email;
6}
7
8<h3>@ViewData["Title"]</h3>
9<partial name="_StatusMessage" for="StatusMessage" />
10<div class="row">
11 <div class="col-md-6">
12 <form id="email-form" method="post">
13 <div asp-validation-summary="All" class="text-danger" role="alert"></div>
14 @if (Model.IsEmailConfirmed)
15 {
16 <div class="form-floating mb-3 input-group">
17 <input asp-for="Email" class="form-control" placeholder="Please enter your email." disabled />
18 <div class="input-group-append">
19 <span class="h-100 input-group-text text-success font-weight-bold">✓</span>
20 </div>
21 <label asp-for="Email" class="form-label"></label>
22 </div>
23 }
24 else
25 {
26 <div class="form-floating mb-3">
27 <input asp-for="Email" class="form-control" placeholder="Please enter your email." disabled />
28 <label asp-for="Email" class="form-label"></label>
29 <button id="email-verification" type="submit" asp-page-handler="SendVerificationEmail" class="btn btn-link">Send verification email</button>
30 </div>
31 }
32 <div class="form-floating mb-3">
33 <input asp-for="Input.NewEmail" class="form-control" autocomplete="email" aria-required="true" placeholder="Please enter new email." />
34 <label asp-for="Input.NewEmail" class="form-label"></label>
35 <span asp-validation-for="Input.NewEmail" class="text-danger"></span>
36 </div>
37 <button id="change-email-button" type="submit" asp-page-handler="ChangeEmail" class="w-100 btn btn-lg btn-primary">Change email</button>
38 </form>
39 </div>
40</div>
41
42@section Scripts {
43 <partial name="_ValidationScriptsPartial" />
44}
Note: See TracBrowser for help on using the repository browser.