@page
@model Admin.Pages.Director.User.EditModel
@{
    ViewData["Title"] = "관리자 정보 수정";
}

<div class="container">
    <h3>@ViewData["Title"]</h3>
    <hr />

    <partial name="_StatusMessage" />
    <small>관리자 가입 회원들입니다. 메뉴 접근 권한을 관리할 수 있습니다.</small>

    <form name="f_admin_write" id="fAdminWrite" class="mt-3" method="post" accept-charset="utf-8" autocomplete="off">
        <input type="hidden" asp-for="Input.ID" />

        <div class="row mb-2">
            <label asp-for="Input.Email" class="col-sm-2 col-form-label"><span class="text-danger">*</span> E-mail</label>
            <div class="col-sm-10">
                <input asp-for="Input.Email" class="form-control" />
                <span asp-validation-for="Input.Email" class="text-danger"></span>
                <small class="form-text text-muted">중복 시 변경이 불가합니다.</small>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.Name" class="col-sm-2 col-form-label"><span class="text-danger">*</span> 이름</label>
            <div class="col-sm-10">
                <input asp-for="Input.Name" class="form-control" />
                <span asp-validation-for="Input.Name" class="text-danger"></span>
                <small class="form-text text-muted">실명을 입력해주세요.</small>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.Phone" class="col-sm-2 col-form-label">연락처</label>
            <div class="col-sm-10">
                <input asp-for="Input.Phone" class="form-control" />
                <span asp-validation-for="Input.Phone" class="text-danger"></span>
                <small class="form-text text-muted">010-XXXX-XXXX 형식으로 입력해주세요.</small>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.NewPassword" class="col-sm-2 col-form-label">새 비밀번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.NewPassword" class="form-control" autocomplete="new-password" aria-required="true" />
                <span asp-validation-for="Input.NewPassword" class="text-danger"></span>
                <div class="form-text text-muted">
                    소문자, 대문자, 특수문자, 숫자를 각 1개 이상은 포함되어야 변경이 가능합니다.
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label asp-for="Input.ConfirmPassword" class="col-sm-2 col-form-label">새 비밀번호 재입력</label>
            <div class="col-sm-10">
                <input asp-for="Input.ConfirmPassword" class="form-control" autocomplete="new-password" aria-required="true" />
                <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span>
            </div>
        </div>
        <div class="row">
            <label asp-for="Input.IsDeleted" class="col-sm-2">비활성화</label>
            <div class="col-sm-10">
                <div class="form-check">
                    <input type="checkbox" asp-for="Input.IsDeleted" class="form-check-input" />
                    <label class="form-check-label" asp-for="Input.IsDeleted">계정을 폐쇄합니다.</label>
                </div>
            </div>
        </div>
        <div class="row">
            <label asp-for="Input.EmailConfirmed" class="col-sm-2">이메일 인증 여부</label>
            <div class="col-sm-10">
                <div class="form-check">
                    <input type="checkbox" asp-for="Input.EmailConfirmed" class="form-check-input" />
                    <label class="form-check-label" asp-for="Input.EmailConfirmed">이메일 인증을 통과하였습니다.</label>
                </div>
            </div>
        </div>
        <div class="row">
            <label asp-for="Input.LockoutEnd" class="col-sm-2">로그인 차단 여부</label>
            <div class="col-sm-10">
                <div class="form-check">
                    <input type="checkbox" asp-for="Input.LockoutEnd" class="form-check-input" />
                    <label class="form-check-label" asp-for="Input.LockoutEnd">로그인을 못하게 막습니다.</label>
                </div>
            </div>
        </div>
        <hr />
        <div class="d-grid gap-2 text-center d-md-block">
            <button type="submit" class="btn btn-success">저장</button>
            <a asp-page="/Director/User/Index" class="btn btn-secondary">취소</a>
        </div>
    </form>
</div>

@section Scripts {
    @{

    }
}