[FO] HTML 서브타이틀 관련 추가
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,4 +1,6 @@
|
||||
let kri = {};
|
||||
let kri = {
|
||||
isReturn: false,
|
||||
};
|
||||
kri.menu = new Object;
|
||||
kri.logger = new Object();
|
||||
|
||||
@@ -16,6 +18,34 @@ kri.menu.my = function() {
|
||||
location.href = '/info';
|
||||
}
|
||||
|
||||
/**
|
||||
* 뒤로가기
|
||||
*/
|
||||
kri.menu.goBack = function() {
|
||||
if (typeof formControl === 'object' && typeof formControl.historyBack === 'function') {
|
||||
formControl.historyBack();
|
||||
return;
|
||||
} else {
|
||||
history.back();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Back Forward Cache로 브라우저가 로딩될 경우 혹은 브라우저 뒤로가기 했을 경우
|
||||
* document.ready 가 먼저 실행 > window.onpageshow
|
||||
*/
|
||||
window.onpageshow = function(event) {
|
||||
if (event.persisted || (window.performance && window.performance.navigation.type == 2)) {
|
||||
kri.isReturn = true;
|
||||
}
|
||||
|
||||
// 전체 공통
|
||||
if (typeof formControl === 'object' && typeof formControl.init === 'function') {
|
||||
setTimeout(() => {
|
||||
formControl.init();
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
|
||||
/* kri.logger */
|
||||
/**
|
||||
|
||||
@@ -65,14 +65,14 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
██ ██ ████ ██ ██ ████ ██ ██ ██ ███████ ██ ██ ██████ ███████ ██ ██
|
||||
-->
|
||||
<th:block th:fragment="header">
|
||||
<th:block th:fragment="header(isSub)">
|
||||
<header id="header" class="header"><!-- 스크롤 시 class='scroll' 추가 -->
|
||||
<ul class="skipnav">
|
||||
<li>
|
||||
<a href="#content">컨텐츠 바로가기</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="header-wrap"><!-- sub페이지에 class='sub' 추가 -->
|
||||
<div class="header-wrap" th:classappend="${isSub ? 'sub' : ''}"><!--/* sub페이지에 class='sub' 추가 */-->
|
||||
<h1>
|
||||
<a href="javascript:void(0);" onclick="kri.menu.main();" class="logo"><img th:src="@{/static/assets/images/common/logo_kri.svg}" alt="KRI 로고"> <span>[[${#messages.msg(currentURI.id)}]]</span></a>
|
||||
</h1>
|
||||
@@ -105,52 +105,17 @@
|
||||
<!-- </ul>-->
|
||||
<!--/* TODO 전체메뉴 E */-->
|
||||
<div class="inner">
|
||||
<button type="button" class="btn-back"><span class="hide-txt">이전으로 이동</span></button>
|
||||
<button type="button" class="btn-back" onclick="kri.menu.goBack()"><span class="hide-txt">이전으로 이동</span></button>
|
||||
<div class="page-tit">
|
||||
<h2>화면 타이틀</h2>
|
||||
<h2>[[${#messages.msg(currentURI.id)}]]</h2>
|
||||
</div>
|
||||
</div>
|
||||
<!--/* TODO 전체메뉴 선택 */-->
|
||||
<button type="button" class="btn-allmenu"><span class="hide-txt">전체메뉴 열기</span></button>
|
||||
</div>
|
||||
</header>
|
||||
</th:block>
|
||||
|
||||
<!--
|
||||
██████ ██████ ███████ █████ ██████ ██████ ██████ ██ ██ ███ ███ ██████
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ ██
|
||||
██████ ██████ █████ ███████ ██ ██ ██ ██████ ██ ██ ██ ████ ██ ██████
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
██████ ██ ██ ███████ ██ ██ ██████ ██████ ██ ██ ██████ ██ ██ ██████
|
||||
-->
|
||||
<div th:fragment="breadcrumb">
|
||||
<!--<div style="background:#eee;">
|
||||
<h2>Breadcrumb 영역</h2>
|
||||
<nav>
|
||||
<ol>
|
||||
<li th:classappend="${item.id == currentURI.id}? 'active'"
|
||||
th:each="item, status : ${menuHierarchy}">
|
||||
<a th:href="${item.uri}" th:if="${item.id != currentURI.id}">
|
||||
<span th:remove="tag" th:text="${@coreUtil.getUriTitle(item)}"></span>
|
||||
</a>
|
||||
<span th:if="${item.id == currentURI.id}" th:remove="tag"
|
||||
th:text="${@coreUtil.getUriTitle(item)}"></span>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>-->
|
||||
</div>
|
||||
|
||||
<!--
|
||||
██████ █████ ██████ ███████ ██ ██ ███████ █████ ██████ ██ ███ ██ ██████
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
|
||||
██████ ███████ ██ ███ █████ ███████ █████ ███████ ██ ██ ██ ██ ██ ██ ██ ███
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
██ ██ ██ ██████ ███████ ██ ██ ███████ ██ ██ ██████ ██ ██ ████ ██████
|
||||
-->
|
||||
<div th:fragment="pageHeading">
|
||||
<h1 th:text="${#messages.msg(currentURI.id)}"></h1>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
██████ ██████ ███████ ██████ █████ ████████ ██ ██████ ███ ██ ███ ███ ███████ ██████
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ████ ████ ██ ██
|
||||
@@ -170,15 +135,23 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
██ ██████ ██████ ██ ███████ ██ ██
|
||||
-->
|
||||
<div th:fragment="bottom-bar">
|
||||
<th:block th:fragment="bottom-bar">
|
||||
<footer id="footer" class="footer">
|
||||
<nav class="footer-menu">
|
||||
<ul>
|
||||
<li class="menu-acco active"><a href="javascript:void(0);" onclick="kri.menu.daily();">일계부</a></li>
|
||||
<li class="menu-acco"
|
||||
th:classappend="${#strings.equals(currentURI?.uri, '/')
|
||||
or #strings.containsIgnoreCase(currentURI?.uri, '/record/') ? 'active' : ''}">
|
||||
<a href="javascript:void(0);" onclick="kri.menu.daily();">일계부</a>
|
||||
</li>
|
||||
<!--/* TODO : 2차 오픈 */-->
|
||||
<!--<li class="menu-regi"><a href="">입력현황</a></li>
|
||||
<li class="menu-stat"><a href="">통계</a></li>-->
|
||||
<li class="menu-info"><a href="javascript:void(0);" onclick="kri.menu.my();">내정보</a></li>
|
||||
<li class="menu-info"
|
||||
th:classappend="${#strings.equals(currentURI?.uri, '/user')
|
||||
or #strings.containsIgnoreCase(currentURI?.uri, '/user/') ? 'actives' : ''}">
|
||||
<a href="javascript:void(0);" onclick="kri.menu.my();">내정보</a>
|
||||
</li>
|
||||
<!--/* TODO : 전체메뉴 적용 전 임시 메뉴 S */-->
|
||||
<li sec:authorize="isAnonymous()" th:remove="tag">
|
||||
<a href="/login">[로그인]</a>
|
||||
@@ -192,7 +165,7 @@
|
||||
</ul>
|
||||
</nav>
|
||||
</footer>
|
||||
</div>
|
||||
</th:block>
|
||||
|
||||
<!--/* 플로팅 : 위로가기 */-->
|
||||
<th:block th:fragment="floating-totop">
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<section th:replace="~{common/components :: header}"></section>
|
||||
<section th:replace="~{common/components :: header(true)}"></section>
|
||||
|
||||
<div id="container" layout:fragment="content">
|
||||
page content
|
||||
</div>
|
||||
|
||||
<section th:replace="common/components :: floating-totop"></section>
|
||||
<!--/* TODO 필요유무 판단 s */-->
|
||||
<div>
|
||||
<div th:replace="~{common/components :: operationMessage}"></div>
|
||||
</div>
|
||||
<!--/* TODO 필요유무 판단 e */-->
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script"></section>
|
||||
|
||||
@@ -5,18 +5,19 @@
|
||||
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<section th:replace="~{common/components :: header}"></section>
|
||||
<section th:replace="~{common/components :: header(false)}"></section>
|
||||
|
||||
<div class="btm-footer" id="container" layout:fragment="content">
|
||||
<div id="container" layout:fragment="content">
|
||||
page content
|
||||
</div>
|
||||
|
||||
<section th:replace="~{common/components :: footer}"></section>
|
||||
<section th:replace="common/components :: floating-totop"></section>
|
||||
|
||||
<!--/* TODO 필요유무 판단 s */-->
|
||||
<div>
|
||||
<div th:replace="~{common/components :: operationMessage}"></div>
|
||||
</div>
|
||||
<!--/* TODO 필요유무 판단 e */-->
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script"></section>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn active">수기 등록</button>
|
||||
<!--/* TODO : 2차 오픈 */-->
|
||||
<!--<button class="btn">영수증 등록</button>-->
|
||||
<!--<button type="button" class="btn">영수증 등록</button>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</button>
|
||||
<div class="select-options">
|
||||
<div class="select-header">
|
||||
<p>바텀시트 셀렉트 헤더</p>
|
||||
<p>재배형태</p>
|
||||
<button type="button" class="select-close">
|
||||
<span class="hide-txt">닫기</span>
|
||||
</button>
|
||||
@@ -115,28 +115,34 @@
|
||||
<!-- TODO : 직접입력 html -->
|
||||
<input type="text" name="categorySelf" th:value="${detail.categorySelf}">
|
||||
<!--<button type="button" class="select-box">
|
||||
<span class="select-txt">선택</span>
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
<div class="select-options">
|
||||
<div class="select-header">
|
||||
<p>바텀시트 셀렉트 헤더</p>
|
||||
<p>수입의 종류</p>
|
||||
<button type="button" class="select-close">
|
||||
<span class="hide-txt">닫기</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<li class="option" data-value="option1">option1</li>
|
||||
<li class="option" data-value="option2">option2</li>
|
||||
<li class="option" data-value="option3">option3</li>
|
||||
<li class="option" data-value="option4">option4</li>
|
||||
<li class="option" data-value="option5">option5</li>
|
||||
<li class="option" data-value="option6">option6</li>
|
||||
<li class="option" data-value="option7">option7</li>
|
||||
<li class="option" data-value="option1">봉급</li>
|
||||
<li class="option" data-value="option2">소득세</li>
|
||||
<li class="option" data-value="option3">수당</li>
|
||||
<li class="option" data-value="option4">직접 입력</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
<!-- 직접입력 인풋 -->
|
||||
<div class="component-input input-invalid" data-option="직접 입력">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_invalid_0001" value="" placeholder="수입의 종류를 입력해 주세요">
|
||||
</div>
|
||||
<ul class="input-info">
|
||||
<li>수입 종류를 입력해 주세요.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-label">
|
||||
@@ -188,7 +194,7 @@
|
||||
</button>
|
||||
<div class="select-options">
|
||||
<div class="select-header">
|
||||
<p>바텀시트 셀렉트 헤더</p>
|
||||
<p>단위</p>
|
||||
<button type="button" class="select-close">
|
||||
<span class="hide-txt">닫기</span>
|
||||
</button>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<section class="regist-item-area">
|
||||
<p class="total">
|
||||
<span>총 <strong>[[${#lists.size(incomeList)}]]</strong>건</span>
|
||||
<button class="btn-reset" onclick="formControl.resetConfirm()">
|
||||
<button type="button" class="btn-reset" onclick="formControl.resetConfirm()">
|
||||
<i class="ico-reset ico-small" aria-hidden="true"></i>
|
||||
<span>초기화</span>
|
||||
</button>
|
||||
@@ -62,8 +62,8 @@
|
||||
<div class="item-tit-group">
|
||||
<p class="item-name">[[${item.categoryLabel}]] [[${item.categorySelf}]]</p>
|
||||
<div class="btn-group">
|
||||
<button class="delete" th:onclick="formControl.removeConfirm([[${item.id}]])"><span class="hide-txt">삭제</span></button>
|
||||
<button class="edit" th:onclick="formControl.createModal([[${item.id}]])"><span class="hide-txt">수정</span></button>
|
||||
<button type="button" class="delete" th:onclick="formControl.removeConfirm([[${item.id}]])"><span class="hide-txt">삭제</span></button>
|
||||
<button type="button" class="edit" th:onclick="formControl.createModal([[${item.id}]])"><span class="hide-txt">수정</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="detail-list">
|
||||
@@ -128,7 +128,7 @@
|
||||
<div class="modal-content">
|
||||
<!--/* form */-->
|
||||
</div>
|
||||
<button class="modal-close"></button>
|
||||
<button type="button" class="modal-close"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user