@model MemberCenter.Web.Models.Account.ChangePasswordViewModel
@{
    ViewData["Title"] = L["Change Password"];
}

@if (ViewData["Result"] is string result)
{
  <div class="admin-notice">@result</div>
}

<form method="post" class="admin-form-panel">
  <div asp-validation-summary="All"></div>

  <label>@L["Current Password"]</label>
  <input asp-for="CurrentPassword" type="password" />
  <span asp-validation-for="CurrentPassword"></span>

  <label>@L["New Password"]</label>
  <input asp-for="NewPassword" type="password" />
  <span asp-validation-for="NewPassword"></span>

  <label>@L["Confirm Password"]</label>
  <input asp-for="ConfirmPassword" type="password" />
  <span asp-validation-for="ConfirmPassword"></span>

  <div class="profile-form-actions">
    <a class="profile-pill-link" asp-area="" asp-controller="Profile" asp-action="Index">@L["Cancel"]</a>
    <button type="submit" class="profile-pill-button">@L["Save"]</button>
  </div>
</form>
