@page
@model Admin.Pages.Config.Test.EmailModel

@{
    ViewData["Title"] = "알림 발송 확인";
}


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

    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <partial name="_StatusMessage" />

    <div class="row row-cols-1 row-cols-sm-4 g-2 mb-2">
        <div class="col">
            <strong>SMTP Server</strong>
        </div>
        <div class="col">
            (@(Model.Input.Basic.SmtpEnableSSL ? "SSL" : "TLS")) @Model.Input.Basic.SmtpServer
        </div>
        <div class="col">
            <strong>SMTP Port</strong>
        </div>
        <div class="col">
            @Model.Input.Basic.SmtpPort
        </div>
    </div>
    <div class="row row-cols-1 row-cols-sm-4 g-2">
        <div class="col">
            <strong>SMTP From Email</strong>
        </div>
        <div class="col">
            @Model.Input.Basic.SmtpUsername
        </div>
        <div class="col">
            <strong>SMTP Email Password</strong>
        </div>
        <div class="col">
            @Model.Input.Basic.SmtpPassword
        </div>
    </div>
    <hr />
    <div class="row">
        <label class="col-sm-2 col-form-label">Send E-mail</label>
        <div class="col-sm-10">
            <input type="text" readonly class="form-control-plaintext" value="@(Model.Settings.SMTP.FromName ?? "-")" />
        </div>
    </div>

    <form name="f_admin_write" id="fAdminWrite" class="mt-2" method="post" autocomplete="off" accept-charset="UTF-8">
        <div class="row">
            <label asp-for="ToAddress" class="col-sm-2 col-form-label">Receive E-mail</label>
            <div class="col-sm-10">
                <input asp-for="ToAddress" class="form-control" placeholder="수신받을 이메일을 입력하세요." />
            </div>
        </div>
        <hr/>
        <div class="text-center">
            <button type="submit" class="btn btn-success">보내기</button>
        </div>
    </form>
</div>

@section Scripts {
    @{

    }
}