@using bitforum.Helpers
@{
    ViewData["Title"] = "알림 발송 양식";
    var config = ViewBag.Config as Dictionary<string, string>;
}

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

    <partial name="_StatusMessage" />
    <partial name="_Editor" />

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

    <form name="f_admin_write" id="fAdminWrite" method="post" asp-controller="Template" asp-action="Save" autocomplete="off">
        <div class="row mb-3">
            <label for="registerEmailFormTitle" class="col-sm-2 col-form-label">회원가입 시</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="register_email_form_title" id="registerEmailFormTitle" class="form-control" value="@config.GetConfig("register_email_form_title")" />
                </div>
                <textarea name="register_email_form_content" id="registerEmailFormContent" class="form-control ck-editor">@config.GetConfig("register_email_form_content")</textarea>
            </div>
        </div>
        <hr />
        <div class="row mb-3">
            <label for="registrationEmailFormTitle" class="col-sm-2 col-form-label">회원가입 완료</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="registration_email_form_title" id="registrationEmailFormTitle" class="form-control" value="@config.GetConfig("registration_email_form_title")" />
                </div>
                <textarea name="registration_email_form_content" id="registrationEmailFormContent" class="form-control ck-editor">@config.GetConfig("registration_email_form_content")</textarea>
            </div>
        </div>
        <hr />
        <div class="row mb-3">
            <label for="forgotPasswordEmailFormTitle" class="col-sm-2 col-form-label">비밀번호 재설정</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="forgot_password_email_form_title" id="forgotPasswordEmailFormTitle" class="form-control" value="@config.GetConfig("forgot_password_email_form_title")" />
                </div>
                <textarea name="forgot_password_email_form_content" id="forgotPasswordEmailFormContent" class="form-control ck-editor">@config.GetConfig("forgot_password_email_form_content")</textarea>
            </div>
        </div>
        <hr />
        <div class="row mb-3">
            <label for="changedPasswordEmailFormTitle" class="col-sm-2 col-form-label">비밀번호 변경 완료</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="changed_password_email_form_title" id="changedPasswordEmailFormTitle" class="form-control" value="@config.GetConfig("changed_password_email_form_title")" />
                </div>
                <textarea name="changed_password_email_form_content" id="changedPasswordEmailFormContent" class="form-control ck-editor">@config.GetConfig("changed_password_email_form_content")</textarea>
            </div>
        </div>
        <hr/>
        <div class="row mb-3">
            <label for="withdrawEmailFormTitle" class="col-sm-2 col-form-label">회원탈퇴 시</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="withdraw_email_form_title" id="withdrawEmailFormTitle" class="form-control" value="@config.GetConfig("withdraw_email_form_title")" />
                </div>
                <textarea name="withdraw_email_form_content" id="withdrawEmailFormContent" class="form-control ck-editor">@config.GetConfig("withdraw_email_form_content")</textarea>
            </div>
        </div>
        <div class="row mb-3">
            <label for="emailVerifyFormTitle" class="col-sm-2 col-form-label">이메일 변경 시</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="email_verify_form_title" id="emailVerifyFormTitle" class="form-control" value="@config.GetConfig("email_verify_form_title")" />
                </div>
                <textarea name="email_verify_form_content" id="emailVerifyFormContent" class="form-control ck-editor">@config.GetConfig("email_verify_form_content")</textarea>
            </div>
        </div>
        <div class="row mb-3">
            <label for="changedEmailFormTitle" class="col-sm-2 col-form-label">이메일 변경 완료</label>
            <div class="col-sm-10">
                <div class="form-label">
                    <input type="text" name="changed_email_form_title" id="changedEmailFormTitle" class="form-control" value="@config.GetConfig("changed_email_form_title")" />
                </div>
                <textarea name="changed_email_form_content" id="changedEmailFormContent" class="form-control ck-editor">@config.GetConfig("changed_email_form_content")</textarea>
            </div>
        </div>
        <hr />
        <div class="row">
            <div class="col text-center p-3">
                <button type="submit" class="btn btn-success">저장하기</button>
            </div>
        </div>

        <br />
    </form>
</div>
