Files
korea-research/admin/src/main/resources/templates/common/components.html

224 lines
13 KiB
HTML

<!DOCTYPE html>
<html xmlns:sec="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<!--
██ ██ ██ ███████ █████ ██████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ███████ █████ ███████ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ███████ ██ ██ ██████ ██
-->
<head th:fragment="head">
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="_csrf" th:content="${_csrf.token}"/>
<meta name="_csrf_header" th:content="${_csrf.headerName}"/>
<meta content="noindex, nofollow" name="robots"/>
<title th:if="${currentURI != null}" th:text="${currentURI.ogTitle}"></title>
<meta name="title" th:content="${currentURI.ogTitle}" th:if="${currentURI != null}"/>
<meta name="description" th:content="${currentURI.ogDesc}" th:if="${currentURI != null}"/>
<meta name="keywords" th:content="${currentURI.ogKeywords}" th:if="${currentURI != null}"/>
<meta property="og:title" th:content="${currentURI.ogTitle}" th:if="${currentURI != null}"/>
<meta property="og:description" th:content="${currentURI.ogDesc}" th:if="${currentURI != null}"/>
<meta property="og:keywords" th:content="${currentURI.ogKeywords}" th:if="${currentURI != null}"/>
<meta property="og:image" th:content="${currentURI.ogImage}" th:if="${currentURI != null}"/>
<!-- 부트스트랩 css 숨김 처리 -->
<!-- <link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap.min.css}"/>-->
<!-- <link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap-icons.css}"/>-->
<script th:src="@{/static/library/jquery/jquery-3.6.0.min.js}"></script>
<link rel="stylesheet" th:href="@{/static/library/jquery-ui/jquery-ui.min.css}"/>
<script th:src="@{/static/library/jquery-ui/jquery-ui.min.js}"></script>
<!-- <link rel="stylesheet" th:href="@{/static/library/bootstrap-treeview/bootstrap-treeview.min.css}">-->
<!-- <script th:src="@{/static/library/bootstrap-treeview/bootstrap-treeview.min.js}"
type="text/javascript"></script>-->
<link rel="shortcut icon" type="image/x-icon" th:href="@{/favicon.ico}" />
<link rel="stylesheet" th:href="@{/static/assets/styles/style.css}" />
<script th:src="@{/static/assets/scripts/common.ui.plugin.js}" ></script>
<script th:src="@{/static/assets/scripts/common.ui.js}" ></script>
<script th:src="@{/static/assets/scripts/common.js}"></script>
<link rel="stylesheet" th:href="@{/static/library/flatpickr/flatpickr.min.css}">
<link rel="stylesheet" th:href="@{/static/library/flatpickr/flatpickr.dark.css}">
<script th:src="@{/static/library/flatpickr/flatpickr.min.js}"></script>
<script th:src="@{/static/ui/navbar/recycle-navbar.js}"></script>
<link rel="stylesheet" th:href="@{/static/ui/navbar/recycle-navbar.css}"/>
<script th:src="@{/static/library/jsUri/Uri.js}"></script>
<script th:src="@{/static/library/jsRender/jsrender.min.js}"></script>
<script th:src="@{/static/library/bootstrap/bootstrap.min.js}"></script>
<script th:src="@{/static/ui/uiUtil.js}"></script>
<script th:src="@{/static/library/jquery/jquery-serializeObject.min.js}"></script>
<script th:src="@{/static/scripts/ajaxUtils.js}"></script>
<script th:each="flashMsg : ${session.flashAlertMessages}" th:if="${session.flashAlertMessages != null}"
th:inline="javascript">
$(function () {
const flashAlertMessage = [[${flashMsg}]];
if (flashAlertMessage) {
alert(flashAlertMessage);
}
});
</script>
<script th:if="${session.flashAlertMessages != null}" th:inline="javascript">
[[${#session.removeAttribute('flashAlertMessages')}]]
</script>
<script th:if="${S3URL != null}" th:inline="javascript">
// AWS - S3 Bucket 을 사용하는 경우, 인라인 경로 참조를 위해 선언
const S3URL = [[${S3URL}]];
</script>
</head>
<body>
<!--
██ ███ ██ █████ ██ ██ ██ ██ ██ ███████ █████ ██████ ███████ ██████
██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ███████ ██ ██ ██ █████ ███████ █████ ███████ ██ ██ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ████ ██ ██ ████ ██ ██ ██ ███████ ██ ██ ██████ ███████ ██ ██
-->
<nav class="header" th:fragment="header">
<div class="inner">
<div class="header-left">
<a aria-current="page" th:href="${topNode.uri}" >
<img class="logo" th:src="@{/static/assets/images/common/ico_logo.svg}" alt="로고 이미지">
</a>
<p class="logo-tit">임가경제조사 일계부 관리자모드</p>
</div>
<ul class="main-menu" th:if="${topNode != null}">
<li class="menu-item" th:each="menu : ${topNode.children}"
th:if="${menu.showOnNavi}" th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, menu.id)}? 'active'">
<!-- 자식 children 가 없는 경우 -->
<a th:classappend="${currentURI.id == menu.id}? 'active'"
th:href="${menu.uri}" th:if="${#lists.size(menu.children) == 0}"
th:text="${#messages.msg(menu.id)}">메뉴명</a>
<!-- 자식 children 가 있는 경우 -->
<th:block th:if="${#lists.size(menu.children) > 0}">
<a th:href="${menu.uri}" th:text="${#messages.msg(menu.id)}">메뉴명</a>
<th:block th:insert="~{this :: subMenuFrag}"
th:with="subMenus = ${menu.children}, addSubMenuClass = false">
</th:block>
</th:block>
</li>
<!-- submenu fragment -->
<th:block th:fragment="subMenuFrag">
<ul class="sub-menu"
th:classappend="${addSubMenuClass ? 'submenu' : ''}" th:if="${@adminUtil.shouldDisplaySubNodes(subMenus)}">
<li th:each="child : ${subMenus}" th:if="${child.showOnNavi}" class="sub-menu-item">
<a th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, child.id)}? 'active'"
th:href="${@adminUtil.shouldDisplaySubNodes(child.children) ? 'javascript:void(0)' : child.uri}">
[[${#messages.msg(child.id)}]]
<p>
<i class="bi bi-arrow-right-circle-fill"
th:if="${@adminUtil.shouldDisplaySubNodes(child.children)}"></i></p>
</a>
<th:block th:insert="~{this :: subMenuFrag}"
th:with="subMenus = ${child.children}, addSubMenuClass = true">
</th:block>
</li>
</ul>
</th:block>
</ul>
<div class="header-right">
<p class="user"><strong sec:authentication="name">로그인 사용자명</strong>님 안녕하세요</p>
<span class="user-ip">111.11.111.111</span>
<button class="btn-logout" onclick="location.href='/logout'">로그아웃</button>
</div>
</div>
</nav>
<!--
██████ ██████ ███████ █████ ██████ ██████ ██████ ██ ██ ███ ███ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ ██
██████ ██████ █████ ███████ ██ ██ ██ ██████ ██ ██ ██ ████ ██ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██ ██ ███████ ██ ██ ██████ ██████ ██ ██ ██████ ██ ██ ██████
-->
<div class="location" th:fragment="breadcrumb">
<a th:href="${item.uri}" th:if="${item.id != currentURI.id}" th:each="item, status : ${menuHierarchy}">
<span th:if="${status.first}" th:remove="tag">홈</span>
<span th:if="${!status.first}" th:remove="tag"
th:text="${@coreUtil.getUriTitle(item)}"></span>
</a>
</div>
<!--
██████ █████ ██████ ███████ ██ ██ ███████ █████ ██████ ██ ███ ██ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
██████ ███████ ██ ███ █████ ███████ █████ ███████ ██ ██ ██ ██ ██ ██ ██ ███
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██████ ███████ ██ ██ ███████ ██ ██ ██████ ██ ██ ████ ██████
-->
<hgroup class="page-tit-group" th:fragment="pageHeading">
<h2 class="page-tit" th:text="${#messages.msg(currentURI.id)}"></h2>
<div class="location" >
<a th:href="${item.uri}" th:if="${item.id != currentURI.id}" th:each="item, status : ${menuHierarchy}">
<span th:if="${status.first}" th:remove="tag">홈</span>
<span th:if="${!status.first}" th:remove="tag"
th:text="${@coreUtil.getUriTitle(item)}"></span>
</a>
</div>
</hgroup>
<!--
██████ ██████ ███████ ██████ █████ ████████ ██ ██████ ███ ██ ███ ███ ███████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ████ ████ ██ ██
██ ██ ██████ █████ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ███████ ██ ███
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██ ███████ ██ ██ ██ ██ ██ ██ ██████ ██ ████ ██ ██ ███████ ██████
-->
<div class="row" th:fragment="operationMessage" th:if="${not #strings.isEmpty(operationMessage)}">
<div class="alert alert-info fw-bold" th:utext="${operationMessage}">
</div>
</div>
<!--
███████ ██████ ██████ ████████ ███████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██
█████ ██ ██ ██ ██ ██ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██████ ██████ ██ ███████ ██ ██
-->
<div th:fragment="footer">
<footer id="footer" class="footer">
<p class="footer-info">
ⓒ COPYRIGHT 2025 KRI 임가경제조사 ALL RIGHTS RESERVED.
</p>
</footer>
</div>
<!-- AUDIT area -->
<div class="alert alert-info audit-area" role="alert" style="visibility:hidden;"
th:fragment="auditArea">
<p class="mb-0">
<i class="bi bi-info-circle-fill"></i>
<mark class="audit-target">Role</mark>
<small class="text-body-secondary">is</small>
<small class="text-body-secondary">created by</small> <u class="createdBy">someone</u>
<small
class="text-body-secondary">at</small> <small
class="text-body-secondary createdAt">YYYY-MM-DD HH:mm</small>
<small class="text-body-secondary">and lastly updated by</small> <u
class="updatedBy">someone</u>
<small
class="text-body-secondary">at</small> <small
class="text-body-secondary updatedAt">YYYY-MM-DD HH:mm</small>
</p>
</div>
</body>
</html>