<!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 rel="stylesheet" href="/css/web/app_board_registration.css">
    <link rel="stylesheet" href="/css/web/modal_app_board_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 muAppBoardId = "[[${param.muAppBoardId}]]";
    </script>
</th:block>
<th:block layout:fragment="layout_content">
    <!-- 센터쪽 -->
    <div class="center_box">
        <p class="page_title">보드 만들기</p>

        <div class="filter_box">
<!--            <div class="form_box">-->
<!--                <div class="select_box first dropdown">-->
<!--                    <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">기간</button>-->

<!--                    <ul class="select_option_list dropdown-menu" id="">-->
<!--                        <li class="option_list_item">오늘</li>-->

<!--                        <li class="option_list_item">최근 30일</li>-->

<!--                        <li class="option_list_item">최근 90일</li>-->

<!--                        <li class="option_list_item">이번주</li>-->

<!--                        <li class="option_list_item">이번달</li>-->

<!--                        <li class="option_list_item">올해</li>-->

<!--                        <li class="option_list_item">지난주</li>-->

<!--                        <li class="option_list_item">지난달</li>-->
<!--                    </ul>-->
<!--                </div>-->

<!--                &lt;!&ndash; 캘린더input &ndash;&gt;-->
<!--                <div class="calendar_box">-->
<!--                    <div class="date_box">-->
<!--                        <img src="/image/web/calendar.svg" alt="calendar"/>-->
<!--                        <input type="date" class="date_picker" id="hidden_userCareerStartDate0">-->
<!--                    </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="hidden_userCareerEndDate0">-->
<!--                    </div>-->
<!--                </div>-->

<!--                <div class="select_box dropdown">-->
<!--                    <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">카테고리</button>-->
<!--                    <ul class="select_option_list dropdown-menu">-->
<!--                        <li class="option_list_item">카테고리</li>-->
<!--                        <li class="option_list_item">1</li>-->
<!--                        <li class="option_list_item">2</li>-->
<!--                        <li class="option_list_item">3</li>-->
<!--                    </ul>-->
<!--                </div>-->

<!--                &lt;!&ndash; 이름input &ndash;&gt;-->
<!--                <div class="search_list">-->
<!--                    <div class="search_box">-->
<!--                        <img src="/image/web/search_G.svg" alt="search"/>-->
<!--                        <input type="text" placeholder="제목, 내용">-->

<!--                        <div class="search_list"></div>&lt;!&ndash; 검색내역 나오는곳 &ndash;&gt;-->
<!--                    </div>-->
<!--                    <button class="search_btn" data-toggle="modal" data-target=".work_closed_modal" style="transition: all 0.2s ease-in-out 0s;">조회</button>-->
<!--                </div>-->
<!--            </div>-->
        </div>

        <!-- 테이블 -->
        <div class="content_box">
            <div class="content_left">
                <p class="title">보드 만들기</p>
                <ul>
                    <li><input type="text" id="title" placeholder="보드 제목을 입력해주세요."/></li>
                    <li><textarea id="content" placeholder="내용을 입력해주세요."></textarea></li>
                    <li class="checkbox_li">
                        <input type="checkbox" id="exposedYn"/>
                        <label for="exposedYn">메인 홈 노출</label>
                    </li>
                </ul>
            </div>
            <div class="content_right">
                <p class="title">콘텐츠</p>
                <div class="right_btn_box">
                    <button class="bring_btn" id="selectContentBtn" data-toggle="modal" style="transition: all 0.2s ease-in-out 0s;">콘텐츠 불러오기</button>
<!--                    <button class="delete_btn">삭제</button>-->
                </div>
                <div class="editor_box ag-theme-balham" id="appContentsGrid"></div>
                <div class="button_box">
                    <button class="registration_btn btnSave">보드수정</button>
                </div>
            </div>
        </div>
    </div>
    <form id="appBoardForm" 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/appcontentsboard/contentsBoardUpdate.js"></script>
    <script src="/js/web/appcontentsboard/popup/appContentsSelectPop.js"></script>
</th:block>
</html>