<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{/web/layout/homeLayout}">
<th:block layout:fragment="layout_css">
    <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/web/app_event_registration.css">
    <link rel="stylesheet" href="/css/web/grid.css?v1.1">
</th:block>
<th:block layout:fragment="layout_top_script">
    <script src="/js/web/jquery.twbsPagination.js" type="text/javascript"></script>
    <script>
        let menuClass     = "[[${param.menuClass}]]"==""?"":"[[${param.menuClass}]]";

        let selectUseYn   = "[[${selectUseYn}]]"==""?"N":"[[${selectUseYn}]]";
        let insertUseYn   = "[[${insertUseYn}]]"==""?"N":"[[${insertUseYn}]]";
        let updateUseYn   = "[[${updateUseYn}]]"==""?"N":"[[${updateUseYn}]]";
        let deleteUseYn   = "[[${deleteUseYn}]]"==""?"N":"[[${deleteUseYn}]]";
        let downloadUseYn = "[[${downloadUseYn}]]"==""?"N":"[[${downloadUseYn}]]";
    </script>
</th:block>
<th:block layout:fragment="layout_content">
    <!-- 센터쪽 -->
    <div class="center_box">
        <p class="page_title">이벤트 등록</p>

        <!-- 테이블 -->
        <div class="content_box">
            <div class="content_left">
                <p class="title">이벤트 등록</p>
                <ul class="first">
                    <li><input type="text" id="title" placeholder="이벤트 제목을 20자 이내로 작성해주세요."/></li>
                    <li><textarea id="content" placeholder="이벤트 내용을 20자 이내로 작성해주세요."></textarea></li>
                    <li>
                        <label>이벤트 기간</label>
                        <div class="calendar_box">
                            <div class="date_box">
                                <img src="/image/web/calendar.svg" alt="calendar"/>
                                <input type="date" class="date_picker" id="eventStartDate">
                            </div>

                            <span class="slash">-</span>

                            <div class="date_box last">
                                <img src="/image/web/calendar.svg" alt="calendar"/>
                                <input type="date" class="date_picker" id="eventEndDate">
                            </div>
                        </div>
                    </li>
                </ul>
                <ul class="last">
                    <li class="checkbox_li">
                        <input type="checkbox" id="exposedYn"/>
                        <label for="exposedYn">메인 홈 노출</label>
                        <p>*이벤트 메인 노출은 최대 5개까지 가능합니다</p>
                    </li>
                    <li class="banner_li">
                        <div class="top">
                            <label>배너이미지</label>
                            <label for="file" class="file_btn"><img src="/image/web/add.svg" alt="파일찾기"></label>
                        </div>
                        <div class="btm">
                            <div class="img_box"><!-- img 미리보기 --></div>
                            <input class="upload-name" placeholder="파일을 업로드해주세요.">
                            <input type="file" id="file" accept="image/jpeg, image/jpg, image/png" multiple>
                            <button id="delete_btn">삭제</button>
                        </div>
                        <p>*이미지 사이즈 규격 정보*<br/>예&#41; 필수사항 : 750px*500px / 1m 이하 / png, jpg(jpeg)</p>
                    </li>
                </ul>
            </div>
            <div class="content_right">
                <p class="title">이벤트 상세</p>
                <div class="editor_box"> <div id="summernote"></div></div>
                <div class="button_box">
                    <button class="cancel_btn btnCancle">취소</button>
                    <button class="registration_btn btnSave">등록</button>
                </div>
            </div>
        </div>
    </div>
    <form id="excelForm" method="POST" target="_blank"></form>
</th:block>
<th:block layout:fragment="layout_popup">
</th:block>
<th:block layout:fragment="layout_script">
    <script src="/js/web/ag-grid-community-29.3.5.min.js"></script>
    <script src="/js/web/appevent/appEventInsert.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
</th:block>
</html>