<!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/userSubMenuLayout}">
<th:block layout:fragment="layout_css">
	<link rel="stylesheet" href="/css/web/customer_sub_agreement.css">
	<link rel="stylesheet" href="/css/web/modal_customer_sub_agreement.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 muUserId = "[[${param.muUserId}]]";

		/* 검색 관련 변수 */
		let userSearchKeywordParam = "[[${param.userSearchKeywordParam}]]";
		let userSort               = "[[${param.userSort}]]";
		let userDir                = "[[${param.userDir}]]";
		let userStart              = "[[${param.userStart}]]"==""?0:"[[${param.userStart}]]";
		let userLimit              = "[[${param.userLimit}]]"==""?500:"[[${param.userLimit}]]";

		let search_nationality = "[[${param.nationality}]]"??"";
		let search_userType = "[[${param.userType}]]"??"";
		let search_membershipYn = "[[${param.membershipYn}]]"??"";
	</script>
</th:block>
<th:block layout:fragment="layout_content">
	<!-- 센터쪽 -->
	<div class="center_box">
		<p class="page_title">동의서</p>

		<div class="filter_box">
			<p id="userName"></p>

			<div class="right_btn_box">
				<button class="produce_btn" id="produceBtn" style="transition: all 0.2s ease-in-out 0s;">동의서 생성</button>
				<button class="download_btn" id="downLoadBtn">
					<img src="/image/web/download.svg" alt="내려받기">
					<p>내려받기</p>
				</button>
				<!-- <button class="print_btn">출력</button> -->
			</div>
		</div>

		<!-- 동의서 테이블 -->
	   <div id="userGrid" class="table_box ag-theme-balham"></div>

	   <!-- 페이지게이션 -->
		<div class="page_box">
			<nav aria-label="Page navigation" class="navigation">
				<ul class="pagination" id="userPagination"></ul>
			</nav>
		</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/signature_pad.js"></script>
	<script src="/js/web/common_sign.js"></script>
	<script src="/js/web/user/user.js"></script>
	<script src="/js/web/user/userAgreementList.js"></script>
	<script src="/js/web/user/popup/userAgreementInsertPop.js"></script>
	<script src="/js/web/user/popup/userAgreementSelectPop.js"></script>
</th:block>
</html>