@page
@* @model PersonalDataModel *@
@model DeletePersonalDataModel
@{
    ViewData["Title"] = "계정 삭제";
    ViewData["ActivePage"] = ManageNavPages.PersonalData;
}

<h3 class="pb-2">@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>
        }
        <div class="row">
            <div class="col col-sm-auto">
                <button class="btn btn-danger w-100" type="submit">회원탈퇴 처리에 동의합니다.</button>
            </div>
        </div>
    </form>
</div>

@*
<div class="row">
    <div class="col-md-6">
        <p>Your account contains personal data that you have given us. This page allows you to download or delete that data.</p>
        <p>
            <strong>Deleting this data will permanently remove your account, and this cannot be recovered.</strong>
        </p>
        <form id="download-data" asp-page="DownloadPersonalData" method="post">
            <button class="btn btn-primary" type="submit">Download</button>
        </form>
        <p>
            <a id="delete" asp-page="DeletePersonalData" class="btn btn-danger">Delete</a>
        </p>
    </div>
</div>
*@

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