FAISP/src/main/resources/templates/fragments/leftMenu.html

39 lines
2.0 KiB
HTML
Raw Normal View History

2022-08-18 06:21:44 +00:00
<!DOCTYPE html>
2022-10-11 09:17:02 +00:00
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
2022-08-19 05:30:04 +00:00
<div class="mx-3 pt-3" th:fragment="leftMenuFragment">
<a href="/" class="d-flex">
<img id="logo" th:src="@{/img/logo.png}" alt="logo" title="logo">
</a>
2022-10-11 09:17:02 +00:00
<ul class="nav nav-pills flex-column my-3">
<li th:each="firstMenu:${session.menuList}">
<th:block th:each="cat1Code:${session.commonCode.get('CAT1')}">
<th:block th:if="${cat1Code.itemCd eq firstMenu.cat1Cd}">
2022-09-02 09:32:55 +00:00
<a href="#" class="nav-link link-dark firstMenuLink" th:text="${cat1Code.itemValue}"></a>
<div class="menuDiv secondMenu h-100 bg-white" style="display: none">
<ul class="nav nav-pills flex-column">
<li th:each="secondMenu:${firstMenu.childList}">
<th:block th:each="cat2Code:${session.commonCode.get('CAT2')}">
<th:block th:if="${cat2Code.itemCd eq secondMenu.cat2Cd}">
<a class="nav-link link-dark secondMenuLink" th:text="${cat2Code.itemValue}" th:href="${#lists.isEmpty(secondMenu.childList)?secondMenu.menuUrl:'#'}"></a>
<div class="menuDiv thirdMenu h-100 bg-white" style="display: none" th:if="${#lists.isEmpty(secondMenu.childList) ne true}">
<ul class="nav nav-pills flex-column">
<li th:each="thirdMenu:${secondMenu.childList}">
<th:block th:each="cat3Code:${session.commonCode.get('CAT3')}">
<th:block th:if="${cat3Code.itemCd eq thirdMenu.cat3Cd}">
<a class="nav-link link-dark" th:text="${cat3Code.itemValue}" th:href="${thirdMenu.menuUrl}"></a>
</th:block>
</th:block>
</li>
</ul>
</div>
</th:block>
</th:block>
</li>
</ul>
</div>
</th:block>
</th:block>
</li>
2022-08-19 05:30:04 +00:00
</ul>
2022-08-18 06:21:44 +00:00
</div>
</html>