<!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_content_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}]]";

        let muAppContentId = "[[${param.muAppContentId}]]";
    </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="appContentCategoryCode">
                            <ul class="select_option_list dropdown-menu">
                                <li class="option_list_item" id="li_skin">피부</li>
                                <li class="option_list_item" id="li_petit">쁘띠</li>
                                <li class="option_list_item" id="li_fat">비만</li>
                                <!--<li class="option_list_item" id="li_etc">기타</li>-->
                            </ul>
                        </div>
                    </li>
                    <li><input type="text" id="title" placeholder="시술정보 제목을 20자 이내로 작성해주세요."/></li>
                    <li><textarea id="content" placeholder="시술정보 내용을 50자 이내로 작성해주세요."></textarea></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 height170"><!-- 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>
            <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/appcontents/appContentsUpdate.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
</th:block>
</html>