@page "{id:int}"
@model Admin.Pages.Member.List.ApproveModel
@{
    ViewData["Title"] = "회원 알림 및 동의";
}

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

    <partial name="_StatusMessage" />

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

        <div class="row mb-2">
            <label asp-for="Input.IsReceiveSMS" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10 align-content-center">
                <div class="form-check-inline">
                    <input type="checkbox" asp-for="Input.IsReceiveSMS" class="form-check-input" />
                    <label class="form-check-label" for="Input_IsReceiveSMS">수신합니다.</label>
                    <span asp-validation-for="Input.IsReceiveSMS" class="text-danger"></span>
                    @if (Model.ReceiveSMSConsentAt is not null)
                    {
                        <span class="form-text text-muted">@Model.ReceiveSMSConsentAt</span>
                    }
                </div>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.IsReceiveEmail" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10 align-content-center">
                <div class="form-check-inline">
                    <input type="checkbox" asp-for="Input.IsReceiveEmail" class="form-check-input" />
                    <label class="form-check-label" for="Input_IsReceiveEmail">수신합니다.</label>
                    <span asp-validation-for="Input.IsReceiveEmail" class="text-danger"></span>
                    @if (Model.ReceiveEmailConsentAt is not null)
                    {
                        <span class="form-text text-muted">@Model.ReceiveEmailConsentAt</span>
                    }
                </div>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.IsReceiveNote" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10 align-content-center">
                <div class="form-check-inline">
                    <input type="checkbox" asp-for="Input.IsReceiveNote" class="form-check-input" />
                    <label class="form-check-label" for="Input_IsReceiveNote">수신합니다.</label>
                    <span asp-validation-for="Input.IsReceiveNote" class="text-danger"></span>
                    @if (Model.ReceiveNoteConsentAt is not null)
                    {
                        <span class="form-text text-muted">@Model.ReceiveNoteConsentAt</span>
                    }
                </div>
            </div>
        </div>
        <div class="row mb-2">
            <label asp-for="Input.IsDisclosureInvest" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10 align-content-center">
                <div class="form-check-inline">
                    <input type="checkbox" asp-for="Input.IsDisclosureInvest" class="form-check-input" />
                    <label class="form-check-label" for="Input_IsDisclosureInvest">수신합니다.</label>
                    <span asp-validation-for="Input.IsDisclosureInvest" class="text-danger"></span>
                    @if (Model.DisclosureInvestConsentAt is not null)
                    {
                        <span class="form-text text-muted">@Model.DisclosureInvestConsentAt</span>
                    }
                </div>
            </div>
        </div>
        <hr/>
        <div class="d-grid gap-2 text-center d-md-block">
            <button type="submit" class="btn btn-success">저장</button>
            <a href="/Member/List?@Model.QueryString" class="btn btn-secondary">취소</a>
        </div>
        <br/>
    </form>
</div>