@page
@model DeletePersonalDataModel
@{
    ViewData["Title"] = "회원탈퇴";
    ViewData["ActivePage"] = ManageNavPages.PersonalData;
}

<h3>@ViewData["Title"]</h3>

<div class="alert alert-warning" role="alert">
    <p class="pb-0 mb-0">
        <strong>이 데이터를 삭제하면 계정이 영구적으로 삭제되며, 이는 복구할 수 없습니다.</strong>
    </p>
</div>

<div>
    <form id="delete-user" method="post" accept-charset="utf-8" autocomplete="off">
        <div asp-validation-summary="ModelOnly" class="text-danger" role="alert"></div>
        @if (Model.RequirePassword)
        {
            <div class="form-floating mb-3">
                <input asp-for="Input.Password" class="form-control" autocomplete="current-password" aria-required="true" placeholder="Please enter your password." />
                <label asp-for="Input.Password" class="form-label"></label>
                <span asp-validation-for="Input.Password" class="text-danger"></span>
            </div>
        }
        <button class="w-100 btn btn-danger" type="submit">회원탈퇴 처리에 동의합니다.</button>
    </form>
</div>

@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}
