-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs, slight UI tweaks (#220)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bd182b0
commit 3294481
Showing
16 changed files
with
463 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 0 additions & 36 deletions
36
src/TagzApp.Web/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml
This file was deleted.
Oops, something went wrong.
127 changes: 0 additions & 127 deletions
127
src/TagzApp.Web/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml.cs
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
src/TagzApp.Web/Areas/Identity/Pages/Account/Manage/Email.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@page | ||
@using Gravatar; | ||
@model EmailModel | ||
@{ | ||
ViewData["Title"] = "Manage Email"; | ||
ViewData["ActivePage"] = ManageNavPages.Email; | ||
} | ||
|
||
<h3>@ViewData["Title"] <img src="@Model.Email.ToGravatar()" class="gravatar" style="margin-left: 2em;" /></h3> | ||
<partial name="_StatusMessage" for="StatusMessage" /> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form id="email-form" method="post"> | ||
<div asp-validation-summary="All" class="text-danger" role="alert"></div> | ||
@if (Model.IsEmailConfirmed) | ||
{ | ||
<div class="form-floating mb-3 input-group"> | ||
<input asp-for="Email" class="form-control" placeholder="Please enter your email." disabled /> | ||
<div class="input-group-append"> | ||
<span class="h-100 input-group-text text-success font-weight-bold">✓</span> | ||
</div> | ||
<label asp-for="Email" class="form-label"></label> | ||
</div> | ||
} | ||
else | ||
{ | ||
<div class="form-floating mb-3"> | ||
<input asp-for="Email" class="form-control" placeholder="Please enter your email." disabled /> | ||
<label asp-for="Email" class="form-label"></label> | ||
<button id="email-verification" type="submit" asp-page-handler="SendVerificationEmail" class="btn btn-link">Send verification email</button> | ||
</div> | ||
} | ||
<div class="form-floating mb-3"> | ||
<input asp-for="Input.NewEmail" class="form-control" autocomplete="email" aria-required="true" placeholder="Please enter new email." /> | ||
<label asp-for="Input.NewEmail" class="form-label"></label> | ||
<span asp-validation-for="Input.NewEmail" class="text-danger"></span> | ||
</div> | ||
<button id="change-email-button" type="submit" asp-page-handler="ChangeEmail" class="w-100 btn btn-lg btn-primary">Change email</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
@section Scripts { | ||
<partial name="_ValidationScriptsPartial" /> | ||
} |
Oops, something went wrong.