<!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/webMainBannerInsert.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>
                        <label>구분</label>
                        <div class="select_box dropdown">
                            <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">구분</button>
                            <input type="hidden" id="bannerType">
                            <ul class="select_option_list dropdown-menu">
                                <li class="option_list_item" id="li_DT">다이어트 상단</li>
                                <li class="option_list_item" id="li_DB">다이어트 하단</li>
                                <li class="option_list_item" id="li_PT">쁘띠 상단</li>
                                <li class="option_list_item" id="li_PB">쁘띠 하단</li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <label>제목</label>
                        <input type="text" id="title" placeholder="제목을 작성해주세요."/>
                    </li>
                    <li>
                        <label>URL</label>
                        <input type="text" id="url" placeholder="URL을 작성해주세요."/>
                    </li>
                </ul>
                <ul class="last">
                    <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" class="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>

                    <li class="banner_li">
                        <div class="top">
                            <label>모바일용 배너</label>
                            <label for="file2" 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="file2" class="file" accept="image/jpeg, image/jpg, image/png" multiple>
                            <button id="delete_btn2">삭제</button>
                        </div>
                        <!--<p>*이미지 사이즈 규격 정보*<br/>예&#41; 필수사항 : 750px*750px / 1m 이하 / png, jpg(jpeg)</p>-->
                    </li>
                </ul>

                <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/webmainbanner/webMainBannerInsert.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
</th:block>
</html>