@page "{id:int}"
@model Admin.Pages.Forum.Board.Meta.NotifyTemplateModel
@{
    ViewData["Title"] = "게시판 관리 - 양식";
    ViewData["Sector"] = "NotifyTemplate";
    ViewData["BoardID"] = Model.BoardID;
    ViewData["BoardList"] = Model.BoardList;
    ViewData["QueryString"] = Model.QueryString;
}

<div class="container">
    <partial name="_Header" />
    <partial name="_StatusMessage" />
    <partial name="_Editor" />
    <partial name="/Pages/Forum/Board/_NavTabs.cshtml" />

    <form id="fAdminWrite" method="post" accept-charset="utf-8" autocomplete="off" enctype="multipart/form-data">
        <input type="hidden" asp-for="Input.ID" />
        <input type="hidden" asp-for="Input.BoardID" />

        <div class="text-muted form-text mb-3">
            이메일 전송에 사용되는 알림 양식을 설정합니다. 양식 별로 치환 가능한 변수가 다릅니다. 변수를 확인해주세요.
        </div>

        <div class="row mb-3">
            <label for="Input_PostWriteEmailNotifySubject" class="col-md-2 col-form-label">게시글 작성 시</label>
            <div class="col-md-10">
                <input asp-for="Input.PostWriteEmailNotifySubject" class="form-control mb-2" maxlength="255" placeholder="제목" />
                <span asp-validation-for="Input.PostWriteEmailNotifySubject" class="text-danger"></span>
                <textarea asp-for="Input.PostWriteEmailNotifyContent" class="ck-editor"></textarea>
                <span asp-validation-for="Input.PostWriteEmailNotifyContent" class="text-danger"></span>
            </div>
        </div>
        <hr/>
        <div class="row mb-3">
            <label for="Input_CommentWriteEmailNotifySubject" class="col-md-2 col-form-label">댓글 작성 시</label>
            <div class="col-md-10">
                <input asp-for="Input.CommentWriteEmailNotifySubject" class="form-control mb-2" maxlength="255" placeholder="제목" />
                <span asp-validation-for="Input.CommentWriteEmailNotifySubject" class="text-danger"></span>
                <textarea asp-for="Input.CommentWriteEmailNotifyContent" class="ck-editor"></textarea>
                <span asp-validation-for="Input.CommentWriteEmailNotifyContent" class="text-danger"></span>
            </div>
        </div>
        <hr/>
        <div class="row mb-3">
            <label for="Input_ReplyWriteEmailNotifySubject" class="col-md-2 col-form-label">답글 작성 시</label>
            <div class="col-md-10">
                <input asp-for="Input.ReplyWriteEmailNotifySubject" class="form-control mb-2" maxlength="255" placeholder="제목" />
                <span asp-validation-for="Input.ReplyWriteEmailNotifySubject" class="text-danger"></span>
                <textarea asp-for="Input.ReplyWriteEmailNotifyContent" class="ck-editor"></textarea>
                <span asp-validation-for="Input.ReplyWriteEmailNotifyContent" class="text-danger"></span>
            </div>
        </div>
        <hr />
        <div class="d-grid gap-2 text-center d-md-block">
            <button type="submit" class="btn btn-success">저장</button>
            <a href="/Forum/Board/List\@Model.QueryString" class="btn btn-secondary">취소</a>
        </div>
        <br />
    </form>
</div>