들여쓰기 변경
This commit is contained in:
@@ -2,127 +2,50 @@
|
||||
<html layout:decorate="~{layout/layout}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<div layout:fragment="content">
|
||||
<div layout:fragment="content" th:classappend="'mypage-wrap'">
|
||||
<main id="content" role="main">
|
||||
|
||||
<style>
|
||||
label {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
div {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.invalid-feedback {
|
||||
display: none;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.is-invalid + .invalid-feedback {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input[readonly] {
|
||||
background-color: #e9ecef;
|
||||
color: #6c757d;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<form
|
||||
method="get"
|
||||
name="reqForm"
|
||||
th:action="@{/user/info}" th:object="${userInfo}">
|
||||
|
||||
<input type="hidden" name="id" th:value="*{seq}">
|
||||
|
||||
<div>
|
||||
<label for="householdNum">임가번호</label>
|
||||
<input id="householdNum" name="householdNum" placeholder="아이디" readonly="readonly" th:field="*{householdNum}"
|
||||
type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="ownerName">경영주</label>
|
||||
<input id="ownerName" name="ownerName" placeholder="경영주 이름" th:field="*{ownerName}" type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="ownerAge">만나이</label>
|
||||
<input id="ownerAge" name="ownerAge" placeholder="나이" th:field="*{ownerAge}" type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="tel">가구연락처</label>
|
||||
<input id="tel" name="tel" placeholder="가구연락처" th:field="*{tel}" type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="phone">핸드폰번호</label>
|
||||
<input id="phone" name="phone" placeholder="핸드폰번호" th:field="*{phone}" type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
<!-- <div>-->
|
||||
<!-- <label for="region">시.도</label>-->
|
||||
<!-- <input id="region" name="region" placeholder="시.도" th:field="*{region}" type="text">-->
|
||||
<!-- <div class="invalid-feedback field-id"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div>-->
|
||||
<!-- <label for="city">시.군.도</label>-->
|
||||
<!-- <input id="city" name="city" placeholder="시.군.도" th:field="*{city}" type="text">-->
|
||||
<!-- <div class="invalid-feedback field-id"></div>-->
|
||||
<!-- </div>-->
|
||||
<div>
|
||||
<label for="addressDetail">전체 주소</label>
|
||||
<input id="addressDetail" name="addressDetail" placeholder="세부 주소" th:field="*{address}" type="text">
|
||||
<div class="invalid-feedback field-id"></div>
|
||||
</div>
|
||||
</form>
|
||||
<button onclick="updateUser();">수정하기</button>
|
||||
<div class="inner">
|
||||
<hgroup class="tit-group">
|
||||
<h3>
|
||||
이번달의 <br>
|
||||
<strong>은행 자동이체 내역 입력 현황</strong>을
|
||||
확인하세요.
|
||||
</h3>
|
||||
</hgroup>
|
||||
<ul class="product-col-list">
|
||||
<li>
|
||||
<a href="">
|
||||
<p class="list-tit">수입</p>
|
||||
<span class="tag">미등록</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="complete">
|
||||
<a href="">
|
||||
<p class="list-tit">지출</p>
|
||||
<span class="tag">등록완료</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script>
|
||||
const updateUser = () => {
|
||||
const f = document.reqForm;
|
||||
const obj = $(f).serializeObject();
|
||||
|
||||
// 기존 에러 메세지 초기화
|
||||
$('.is-invalid').removeClass('is-invalid');
|
||||
|
||||
$.ajax({
|
||||
method: 'PATCH',
|
||||
url: '/api/front/household/update',
|
||||
data: obj,
|
||||
beforeSend: function (xhr) {
|
||||
xhr.setRequestHeader(
|
||||
$("meta[name='_csrf_header']").attr("content"),
|
||||
$("meta[name='_csrf']").attr("content"));
|
||||
<script th:inline="javascript">
|
||||
let ENV = {
|
||||
httpUrl: {
|
||||
root: /*[[#{uri.front.info.monthly.path}]]*/'rootUrl'
|
||||
},
|
||||
success(res) {
|
||||
if (confirm(`'${res.ownerName} 님의' 정보가 수정되었습니다.`)) {
|
||||
location.reload();
|
||||
}
|
||||
module: {
|
||||
confirmPopup: null
|
||||
},
|
||||
statusCode: {
|
||||
'422': (res) => {
|
||||
const fieldErrors = res.responseJSON.fieldErrors;
|
||||
$(fieldErrors).each(function (idx, error) {
|
||||
let target = $(f).find('[name=' + error.field + ']');
|
||||
target.addClass('is-invalid');
|
||||
submitted: false,
|
||||
};
|
||||
let formControl = {
|
||||
init() {
|
||||
|
||||
target.parent().find('.invalid-feedback').text(error.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
<dl class="info-card">
|
||||
<dt class="name" th:text="${userInfo?.ownerName}"></dt>
|
||||
<dd class="location" th:text="${userInfo?.address}"></dd><!-- TODO 임가 주소 위치 임시로 . 처리함. -->
|
||||
<dd class="date" th:if="${latestRegisteredDate != null or !#strings.isEmpty(latestRegisteredDate)}" th:text="${'최근등록: '+latestRegisteredDate}"></dd>
|
||||
<dd class="date" th:if="${latestRegisteredDate != null or !#strings.isEmpty(latestRegisteredDate)}"
|
||||
th:text="${'최근등록: '+latestRegisteredDate}"></dd>
|
||||
</dl>
|
||||
<th:block th:if="${notice != null}">
|
||||
<a th:href="@{'/info/notice/' + ${notice.id}}" class="notice-box">
|
||||
@@ -63,7 +64,8 @@
|
||||
<dl>
|
||||
<dt>은행 자동이체 내역</dt>
|
||||
<dd>자동으로 입금·출금된 금액을 <br>
|
||||
기록해 주세요</dd>
|
||||
기록해 주세요
|
||||
</dd>
|
||||
</dl>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -25,19 +25,23 @@
|
||||
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-m btn-secondary btn-full" style="margin-bottom:1.2rem" id="addItemBtn" onclick="formControl.addOpen()">
|
||||
<button type="button" class="btn btn-m btn-secondary btn-full" style="margin-bottom:1.2rem"
|
||||
id="addItemBtn" onclick="formControl.addOpen()">
|
||||
<i class="ico-add ico-small" aria-hidden="true"></i>
|
||||
<span class="btn-txt">추가 등록</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-m btn-link btn-full" th:if="${pastMonthlyInfo != null && currentList.totalElements == 0}" id="callPastInfoBtn">
|
||||
<button type="button" class="btn btn-m btn-link btn-full"
|
||||
th:if="${pastMonthlyInfo != null && currentList.totalElements == 0}" id="callPastInfoBtn">
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="component-input align-center" th:if="${currentList.totalElements == 0}" id="forestProductStatusDiv">
|
||||
<div class="component-input align-center" th:if="${currentList.totalElements == 0}"
|
||||
id="forestProductStatusDiv">
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus" th:value="${MonthStatus.NOTHING}" onchange="formControl.handleCheckboxChange()">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus"
|
||||
th:value="${MonthStatus.NOTHING}" onchange="formControl.handleCheckboxChange()">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">이번달 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -52,7 +56,6 @@
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -67,12 +70,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 모달 팝업 -->
|
||||
<div class="layer-wrap">
|
||||
<div class="component-modal mypage-wrap addPopup" data-props-dimm-click="true">
|
||||
@@ -104,7 +101,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="town" placeholder="읍면동을 입력해 주세요" name="town" maxlength="10">
|
||||
<input type="text" id="town" placeholder="읍면동을 입력해 주세요" name="town"
|
||||
maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 지번 -->
|
||||
@@ -115,7 +113,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="streetNum" placeholder="지번을 입력해 주세요" name="streetNum" maxlength="10">
|
||||
<input type="text" id="streetNum" placeholder="지번을 입력해 주세요" name="streetNum"
|
||||
maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 지목 -->
|
||||
@@ -125,7 +124,8 @@
|
||||
지목
|
||||
</p>
|
||||
</div>
|
||||
<div id="landTypeSelect" class="component-select bottom-sheet" data-props-default="지목을 선택해 주세요" data-props-type="bottomSheet">
|
||||
<div id="landTypeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="지목을 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" id="landType" name="landType" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
@@ -140,7 +140,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${purposeList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -155,7 +157,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="availableArea" placeholder="가능 면적을 입력해 주세요" name="availableArea" class="limitDecimalLength">
|
||||
<input type="number" id="availableArea" placeholder="가능 면적을 입력해 주세요"
|
||||
name="availableArea" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -172,7 +175,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="cropName" placeholder="재배 작물명을 입력해 주세요" name="cropName" maxlength="10">
|
||||
<input type="text" id="cropName" placeholder="재배 작물명을 입력해 주세요"
|
||||
name="cropName" maxlength="10">
|
||||
</div>
|
||||
<ul class="guide-info">
|
||||
<li>예 : 수확</li>
|
||||
@@ -186,7 +190,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="landArea" placeholder="작업 면적을 입력해 주세요" name="landArea" class="limitDecimalLength">
|
||||
<input type="number" id="landArea" placeholder="작업 면적을 입력해 주세요"
|
||||
name="landArea" class="limitDecimalLength">
|
||||
</div>
|
||||
<ul class="guide-info">
|
||||
<li>예 : 180, 6</li>
|
||||
@@ -205,7 +210,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="mainYield" placeholder="수확량을 입력해 주세요" name="mainYield" class="limitDecimalLength">
|
||||
<input type="number" id="mainYield" placeholder="수확량을 입력해 주세요"
|
||||
name="mainYield" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -217,8 +223,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainYieldUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainYieldUnitCode" id="mainYieldUnitCode" data-type="select">
|
||||
<div id="mainYieldUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainYieldUnitCode" id="mainYieldUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -232,7 +240,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -252,7 +262,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="mainSaleAmount" placeholder="판매량을 입력해 주세요" name="mainSaleAmount" class="limitDecimalLength">
|
||||
<input type="number" id="mainSaleAmount" placeholder="판매량을 입력해 주세요"
|
||||
name="mainSaleAmount" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -264,8 +275,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainSaleUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainSaleUnitCode" id="mainSaleUnitCode" data-type="select">
|
||||
<div id="mainSaleUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainSaleUnitCode" id="mainSaleUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -279,7 +292,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -299,7 +314,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="subYield" placeholder="수확량을 입력해 주세요" name="subYield" class="limitDecimalLength">
|
||||
<input type="number" id="subYield" placeholder="수확량을 입력해 주세요"
|
||||
name="subYield" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -311,8 +327,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="subYieldUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subYieldUnitCode" id="subYieldUnitCode" data-type="select">
|
||||
<div id="subYieldUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subYieldUnitCode" id="subYieldUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -326,7 +344,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -346,7 +366,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="subSaleAmount" placeholder="판매량을 입력해 주세요" name="subSaleAmount" class="limitDecimalLength">
|
||||
<input type="number" id="subSaleAmount" placeholder="판매량을 입력해 주세요"
|
||||
name="subSaleAmount" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -358,8 +379,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="subSaleUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subSaleUnitCode" id="subSaleUnitCode" data-type="select">
|
||||
<div id="subSaleUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subSaleUnitCode" id="subSaleUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -373,7 +396,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -383,7 +408,8 @@
|
||||
</section>
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary" onclick="formControl.addData()">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary"
|
||||
onclick="formControl.addData()">
|
||||
<span class="btn-txt">등록</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -401,17 +427,9 @@
|
||||
<!-- //모달 팝업 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
let ENV = {
|
||||
@@ -578,7 +596,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
const existingIndex = ENV.data.addProducts.findIndex(item => item.id == data.id);
|
||||
if (existingIndex !== -1) {
|
||||
ENV.data.addProducts[existingIndex] = data;
|
||||
@@ -595,8 +612,6 @@
|
||||
}, 300)
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
getPurposeText(code) {
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
</hgroup>
|
||||
<ul class="product-col-list">
|
||||
|
||||
<li th:each="item : ${list.content}" th:classappend="${item.forestProductStatus != MonthStatus.NONE} ? ' complete'">
|
||||
<li th:each="item : ${list.content}"
|
||||
th:classappend="${item.forestProductStatus != MonthStatus.NONE} ? ' complete'">
|
||||
<a th:href="@{/info/monthly/create/{id}(id=${item.id})}">
|
||||
<p class="list-tit" th:text="${item.koreanMonth}"></p>
|
||||
<span class="tag" th:text="${item.forestProductStatus.desc}"></span>
|
||||
|
||||
@@ -14,30 +14,36 @@
|
||||
</hgroup>
|
||||
|
||||
<section class="regist-item-area">
|
||||
<p class="total" style="display: none" id="listHeader"><!-- th:style="${currentList.totalElements == 0 ? 'display:none':''}"-->
|
||||
<p class="total" style="display: none" id="listHeader">
|
||||
<!-- th:style="${currentList.totalElements == 0 ? 'display:none':''}"-->
|
||||
<span>총 <strong id="listCount">0</strong>건</span>
|
||||
<button type="button" class="btn-reset" onclick="formControl.clearAllItems()" id="clearAllItems">
|
||||
<i class="ico-reset ico-small" aria-hidden="true"></i>
|
||||
<span>초기화</span>
|
||||
</button>
|
||||
</p>
|
||||
<div class="item-list" style="display: none" id="listBody"> <!-- th:style="${currentList.totalElements == 0 ? 'display:none':''}"-->
|
||||
<div class="item-list" style="display: none" id="listBody">
|
||||
<!-- th:style="${currentList.totalElements == 0 ? 'display:none':''}"-->
|
||||
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-m btn-secondary btn-full" style="margin-bottom:1.2rem" id="addItemBtn" onclick="formControl.openAddForm()">
|
||||
<button type="button" class="btn btn-m btn-secondary btn-full" style="margin-bottom:1.2rem"
|
||||
id="addItemBtn" onclick="formControl.openAddForm()">
|
||||
<i class="ico-add ico-small" aria-hidden="true"></i>
|
||||
<span class="btn-txt">추가 등록</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn"> <!-- th:style="${pastMonthlyInfo != null && currentList.totalElements == 0 ? '':'display:none'}"-->
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn">
|
||||
<!-- th:style="${pastMonthlyInfo != null && currentList.totalElements == 0 ? '':'display:none'}"-->
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="component-input align-center" id="forestProductStatusDiv"> <!-- th:style="${currentList.totalElements == 0 ? '':'display:none'}"-->
|
||||
<div class="component-input align-center" id="forestProductStatusDiv">
|
||||
<!-- th:style="${currentList.totalElements == 0 ? '':'display:none'}"-->
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus" th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus"
|
||||
th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">
|
||||
<span class="checkbox-item">
|
||||
<span class="checkbox-txt">이번달 등록내용 없음</span>
|
||||
</span>
|
||||
@@ -52,7 +58,6 @@
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -60,19 +65,14 @@
|
||||
<div class="component-btns fixed">
|
||||
<div class="btns-row">
|
||||
<!-- 비활성화 스타일/ 버튼 속성 disable 추가-->
|
||||
<button type="button" class="btn btn-l btn-primary" id="complateBtn" disabled onclick="formControl.goSave()">
|
||||
<button type="button" class="btn btn-l btn-primary" id="complateBtn" disabled
|
||||
onclick="formControl.goSave()">
|
||||
<span class="btn-txt">등록 완료</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 모달 팝업 -->
|
||||
<div class="layer-wrap">
|
||||
<div class="component-modal mypage-wrap addPopup" data-props-dimm-click="true">
|
||||
@@ -104,7 +104,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="town" placeholder="읍면동을 입력해 주세요" name="town" maxlength="10">
|
||||
<input type="text" id="town" placeholder="읍면동을 입력해 주세요" name="town"
|
||||
maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 지번 -->
|
||||
@@ -115,7 +116,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="streetNum" placeholder="지번을 입력해 주세요" name="streetNum" maxlength="10">
|
||||
<input type="text" id="streetNum" placeholder="지번을 입력해 주세요" name="streetNum"
|
||||
maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 지목 -->
|
||||
@@ -125,7 +127,8 @@
|
||||
지목
|
||||
</p>
|
||||
</div>
|
||||
<div id="landTypeSelect" class="component-select bottom-sheet" data-props-default="지목을 선택해 주세요" data-props-type="bottomSheet">
|
||||
<div id="landTypeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="지목을 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" id="landType" name="landType" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
@@ -140,7 +143,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${purposeList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -155,7 +160,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="availableArea" placeholder="가능 면적을 입력해 주세요" name="availableArea" class="limitDecimalLength">
|
||||
<input type="number" id="availableArea" placeholder="가능 면적을 입력해 주세요"
|
||||
name="availableArea" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -172,7 +178,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="cropName" placeholder="재배 작물명을 입력해 주세요" name="cropName" maxlength="10">
|
||||
<input type="text" id="cropName" placeholder="재배 작물명을 입력해 주세요"
|
||||
name="cropName" maxlength="10">
|
||||
</div>
|
||||
<ul class="guide-info">
|
||||
<li>예 : 수확</li>
|
||||
@@ -186,7 +193,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="landArea" placeholder="작업 면적을 입력해 주세요" name="landArea" class="limitDecimalLength">
|
||||
<input type="number" id="landArea" placeholder="작업 면적을 입력해 주세요"
|
||||
name="landArea" class="limitDecimalLength">
|
||||
</div>
|
||||
<ul class="guide-info">
|
||||
<li>예 : 180, 6</li>
|
||||
@@ -205,7 +213,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="mainYield" placeholder="수확량을 입력해 주세요" name="mainYield" class="limitDecimalLength">
|
||||
<input type="number" id="mainYield" placeholder="수확량을 입력해 주세요"
|
||||
name="mainYield" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -217,8 +226,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainYieldUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainYieldUnitCode" id="mainYieldUnitCode" data-type="select">
|
||||
<div id="mainYieldUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainYieldUnitCode" id="mainYieldUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -232,7 +243,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -252,7 +265,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="mainSaleAmount" placeholder="판매량을 입력해 주세요" name="mainSaleAmount" class="limitDecimalLength">
|
||||
<input type="number" id="mainSaleAmount" placeholder="판매량을 입력해 주세요"
|
||||
name="mainSaleAmount" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -264,8 +278,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainSaleUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainSaleUnitCode" id="mainSaleUnitCode" data-type="select">
|
||||
<div id="mainSaleUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="mainSaleUnitCode" id="mainSaleUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -279,7 +295,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -299,7 +317,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="subYield" placeholder="수확량을 입력해 주세요" name="subYield" class="limitDecimalLength">
|
||||
<input type="number" id="subYield" placeholder="수확량을 입력해 주세요"
|
||||
name="subYield" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -311,8 +330,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="subYieldUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subYieldUnitCode" id="subYieldUnitCode" data-type="select">
|
||||
<div id="subYieldUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subYieldUnitCode" id="subYieldUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -326,7 +347,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -346,7 +369,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="number" id="subSaleAmount" placeholder="판매량을 입력해 주세요" name="subSaleAmount" class="limitDecimalLength">
|
||||
<input type="number" id="subSaleAmount" placeholder="판매량을 입력해 주세요"
|
||||
name="subSaleAmount" class="limitDecimalLength">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -358,8 +382,10 @@
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div id="subSaleUnitCodeSelect" class="component-select bottom-sheet" data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subSaleUnitCode" id="subSaleUnitCode" data-type="select">
|
||||
<div id="subSaleUnitCodeSelect" class="component-select bottom-sheet"
|
||||
data-props-default="단위를 선택해 주세요" data-props-type="bottomSheet">
|
||||
<input type="hidden" name="subSaleUnitCode" id="subSaleUnitCode"
|
||||
data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
</button>
|
||||
@@ -373,7 +399,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${unitList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -383,7 +411,8 @@
|
||||
</section>
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary" onclick="formControl.saveFormData()">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary"
|
||||
onclick="formControl.saveFormData()">
|
||||
<span class="btn-txt">등록</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -401,17 +430,9 @@
|
||||
<!-- //모달 팝업 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
// ✅ ENV 구조 (전역 설정 및 상태)
|
||||
@@ -615,7 +636,9 @@
|
||||
// 등록폼 추가
|
||||
openAddForm() {
|
||||
const modalContent = document.querySelector('.modal-content');
|
||||
setTimeout(() => { modalContent.scrollTop = 0; }, 0);
|
||||
setTimeout(() => {
|
||||
modalContent.scrollTop = 0;
|
||||
}, 0);
|
||||
//초기화 안됨
|
||||
['landTypeSelect', 'mainYieldUnitCodeSelect', 'mainSaleUnitCodeSelect', 'subYieldUnitCodeSelect', 'subSaleUnitCodeSelect']
|
||||
.forEach(id => etUI.components.SelectBox().core.init(document.getElementById(id)));
|
||||
@@ -647,10 +670,22 @@
|
||||
|
||||
const errors = [];
|
||||
if (!form.cropName.value) errors.push({field: 'cropName', message: '재배 작물명을 입력해주세요.'});
|
||||
if (form.mainYield.value && !form.mainYieldUnitCode.value) errors.push({ field: 'mainYieldUnitCode', message: '단위를 선택해주세요.' });
|
||||
if (form.mainSaleAmount.value && !form.mainSaleUnitCode.value) errors.push({ field: 'mainSaleUnitCode', message: '단위를 선택해주세요.' });
|
||||
if (form.subYield.value && !form.subYieldUnitCode.value) errors.push({ field: 'subYieldUnitCode', message: '단위를 선택해주세요.' });
|
||||
if (form.subSaleAmount.value && !form.subSaleUnitCode.value) errors.push({ field: 'subSaleUnitCode', message: '단위를 선택해주세요.' });
|
||||
if (form.mainYield.value && !form.mainYieldUnitCode.value) errors.push({
|
||||
field: 'mainYieldUnitCode',
|
||||
message: '단위를 선택해주세요.'
|
||||
});
|
||||
if (form.mainSaleAmount.value && !form.mainSaleUnitCode.value) errors.push({
|
||||
field: 'mainSaleUnitCode',
|
||||
message: '단위를 선택해주세요.'
|
||||
});
|
||||
if (form.subYield.value && !form.subYieldUnitCode.value) errors.push({
|
||||
field: 'subYieldUnitCode',
|
||||
message: '단위를 선택해주세요.'
|
||||
});
|
||||
if (form.subSaleAmount.value && !form.subSaleUnitCode.value) errors.push({
|
||||
field: 'subSaleUnitCode',
|
||||
message: '단위를 선택해주세요.'
|
||||
});
|
||||
|
||||
kri.form.error(errors);
|
||||
if (errors.length > 0) return;
|
||||
@@ -717,13 +752,16 @@
|
||||
},
|
||||
|
||||
|
||||
|
||||
goSave() {
|
||||
|
||||
|
||||
ajaxUtil._ajaxAsync(
|
||||
ENV.httpUrl.save,
|
||||
{status : ENV.elementRefs.noDataCheckbox.checked, id:ENV.data.id, productList : ENV.data.productList},
|
||||
{
|
||||
status: ENV.elementRefs.noDataCheckbox.checked,
|
||||
id: ENV.data.id,
|
||||
productList: ENV.data.productList
|
||||
},
|
||||
function (rstData, status) {
|
||||
if (rstData.code === 'SUCCESS') {
|
||||
ajaxUtil._alert('등록이 완료되었습니다.', null, function () {
|
||||
@@ -742,7 +780,6 @@
|
||||
};
|
||||
|
||||
|
||||
|
||||
const productRenderer = {
|
||||
//화면에 아이템 추가
|
||||
addItem(product, isEdit) {
|
||||
|
||||
@@ -6,13 +6,15 @@
|
||||
<main id="content" role="main">
|
||||
<div class="inner">
|
||||
<section class="search-area">
|
||||
<form autocomplete="off" method="get" name="reqForm" action="/info/notice" onsubmit="formControl.goSearch()"
|
||||
<form autocomplete="off" method="get" name="reqForm" action="/info/notice"
|
||||
onsubmit="formControl.goSearch()"
|
||||
th:object="${reqVO}"
|
||||
>
|
||||
<input type="hidden" name="sort" id="sort" value="createdAt,DESC"/>
|
||||
<input type="hidden" name="page" id="page" th:value="${notices != null} ? ${notices.number} : 0"/>
|
||||
|
||||
<div id="searchFieldId" class="component-select bottom-sheet" data-props-default="제목 + 내용" data-props-type="bottomSheet">
|
||||
<div id="searchFieldId" class="component-select bottom-sheet" data-props-default="제목 + 내용"
|
||||
data-props-type="bottomSheet">
|
||||
<input type="hidden" name="searchField"/>
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt">제목 + 내용</span>
|
||||
@@ -26,17 +28,26 @@
|
||||
</div>
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<li class="option" th:classappend="*{searchField == null or searchField == 'titleContent'} ? ' current' : ''" data-value="titleContent">제목 + 내용</li>
|
||||
<li class="option" th:classappend="*{searchField == 'title'} ? ' current' : ''" data-value="title">제목</li>
|
||||
<li class="option" th:classappend="*{searchField == 'content'} ? ' current' : ''" data-value="content">내용</li>
|
||||
<li class="option"
|
||||
th:classappend="*{searchField == null or searchField == 'titleContent'} ? ' current' : ''"
|
||||
data-value="titleContent">제목 + 내용
|
||||
</li>
|
||||
<li class="option" th:classappend="*{searchField == 'title'} ? ' current' : ''"
|
||||
data-value="title">제목
|
||||
</li>
|
||||
<li class="option" th:classappend="*{searchField == 'content'} ? ' current' : ''"
|
||||
data-value="content">내용
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_ico_id_0001" placeholder="검색어를 입력해 주세요" name="searchValue" th:field="*{searchValue}"/>
|
||||
<i class="input-field-ico ico-search" aria-hidden="true" onclick="formControl.goSearch()"></i>
|
||||
<input type="text" id="temp_input_ico_id_0001" placeholder="검색어를 입력해 주세요" name="searchValue"
|
||||
th:field="*{searchValue}"/>
|
||||
<i class="input-field-ico ico-search" aria-hidden="true"
|
||||
onclick="formControl.goSearch()"></i>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -69,7 +80,6 @@
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div th:replace="common/list-components :: paginationCommon(${notices})"></div>
|
||||
|
||||
|
||||
|
||||
@@ -8,19 +8,20 @@
|
||||
<div class="inner">
|
||||
<dl class="detail-tit-group">
|
||||
<dt th:text="${notice.title}"></dt>
|
||||
<dd>[[${#temporals.format(notice.createdAt, 'yyyy.MM.dd')}]] <span class="badge" th:if="${notice.newDate}">new</span></dd>
|
||||
<dd>[[${#temporals.format(notice.createdAt, 'yyyy.MM.dd')}]] <span class="badge"
|
||||
th:if="${notice.newDate}">new</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="detail-content">
|
||||
<p th:utext="${notice.content}"></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="download-file" th:if="${!#lists.isEmpty(notice.uploadFiles)}">
|
||||
<p class="tit">첨부파일</p>
|
||||
<ul>
|
||||
<li th:each="item : ${notice.uploadFiles}"><a th:href="${item.attachmentURL}" download th:text="${item.originName}"></a></li>
|
||||
<li th:each="item : ${notice.uploadFiles}"><a th:href="${item.attachmentURL}" download
|
||||
th:text="${item.originName}"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -21,12 +21,14 @@
|
||||
<label for="password" class="label-txt">비밀번호</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="password" id="password" placeholder="비밀번호 4자리를 입력해 주세요" name="password" maxlength="4">
|
||||
<input type="password" id="password" placeholder="비밀번호 4자리를 입력해 주세요" name="password"
|
||||
maxlength="4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary" onclick="formControl.authInfoUser()">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary"
|
||||
onclick="formControl.authInfoUser()">
|
||||
<span class="btn-txt">다음</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -49,8 +51,6 @@
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
submitted: false,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
<p class="form-desc">필수입력</p>
|
||||
|
||||
<section class="form-group">
|
||||
<form method="post" name="reqForm" id="reqForm" onsubmit="formControl.authInfoUser();" th:action="@{/api/front/info/user/update}" th:object="${userInfo}">
|
||||
<form method="post" name="reqForm" id="reqForm" onsubmit="formControl.authInfoUser();"
|
||||
th:action="@{/api/front/info/user/update}" th:object="${userInfo}">
|
||||
<!-- 이름 -->
|
||||
<div class="component-input">
|
||||
<div class="input-label">
|
||||
@@ -19,7 +20,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0001" placeholder="이름을 입력해 주세요" th:field="*{ownerName}" maxlength="10">
|
||||
<input type="text" id="temp_input_0001" placeholder="이름을 입력해 주세요" th:field="*{ownerName}"
|
||||
maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 연령 -->
|
||||
@@ -30,7 +32,8 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0002" placeholder="만 나이를 입력해 주세요" th:field="*{ownerAge}" maxlength="3" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
<input type="text" id="temp_input_0002" placeholder="만 나이를 입력해 주세요" th:field="*{ownerAge}"
|
||||
maxlength="3" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 가구연락처 -->
|
||||
@@ -43,7 +46,8 @@
|
||||
<div class="d-flex">
|
||||
<div class="select-group">
|
||||
|
||||
<div id="tel1Id" class="component-select bottom-sheet" th:data-props-default="${userInfo.tel1}" data-props-type="bottomSheet">
|
||||
<div id="tel1Id" class="component-select bottom-sheet"
|
||||
th:data-props-default="${userInfo.tel1}" data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{tel1}" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
@@ -81,12 +85,14 @@
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" placeholder=0000 th:field="*{tel2}" maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
<input type="text" placeholder=0000 th:field="*{tel2}" maxlength="4"
|
||||
oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" placeholder=0000 th:field="*{tel3}" maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
<input type="text" placeholder=0000 th:field="*{tel3}" maxlength="4"
|
||||
oninput="this.value=this.value.replace(/[^0-9]/g,'')"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -102,7 +108,8 @@
|
||||
<div class="select-group">
|
||||
|
||||
|
||||
<div id="phoneId" class="component-select bottom-sheet" th:data-props-default="${userInfo.phone1}" data-props-type="bottomSheet">
|
||||
<div id="phoneId" class="component-select bottom-sheet"
|
||||
th:data-props-default="${userInfo.phone1}" data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{phone1}" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt"></span>
|
||||
@@ -125,12 +132,14 @@
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0006" placeholder=0000 th:field="*{phone2}" maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
<input type="text" id="temp_input_0006" placeholder=0000 th:field="*{phone2}"
|
||||
maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0007" placeholder=0000 th:field="*{phone3}" maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
<input type="text" id="temp_input_0007" placeholder=0000 th:field="*{phone3}"
|
||||
maxlength="4" oninput="this.value=this.value.replace(/[^0-9]/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -146,7 +155,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div id="regionMainCodeId" class="component-select bottom-sheet" data-props-default="시/도 선택" data-props-type="bottomSheet">
|
||||
<div id="regionMainCodeId" class="component-select bottom-sheet" data-props-default="시/도 선택"
|
||||
data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{regionMainCode}" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt">선택</span>
|
||||
@@ -161,7 +171,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${regionMainList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}">option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -172,7 +184,8 @@
|
||||
|
||||
|
||||
<div class="select-group">
|
||||
<div id="regionSubCodeId" class="component-select bottom-sheet" data-props-default="시/군/구 선택" data-props-type="bottomSheet">
|
||||
<div id="regionSubCodeId" class="component-select bottom-sheet"
|
||||
data-props-default="시/군/구 선택" data-props-type="bottomSheet">
|
||||
<input type="hidden" th:field="*{regionSubCode}" data-type="select">
|
||||
<button type="button" class="select-box">
|
||||
<span class="select-txt">선택</span>
|
||||
@@ -187,7 +200,9 @@
|
||||
<div class="select-scroll">
|
||||
<ul class="">
|
||||
<th:block th:each="item : ${regionSubList}">
|
||||
<li class="option" th:data-value="${item.id}" th:text="${item.codeText}" >option1</li>
|
||||
<li class="option" th:data-value="${item.id}"
|
||||
th:text="${item.codeText}">option1
|
||||
</li>
|
||||
</th:block>
|
||||
|
||||
</ul>
|
||||
@@ -197,7 +212,8 @@
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_00023" placeholder="세부 주소를 입력해 주세요" th:field="*{address}" maxlength="50"/>
|
||||
<input type="text" id="temp_input_00023" placeholder="세부 주소를 입력해 주세요"
|
||||
th:field="*{address}" maxlength="50"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -216,8 +232,6 @@
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 모달 팝업 -->
|
||||
<div class="layer-wrap">
|
||||
<div class="component-modal confirmPopup" data-props-dimm-click="true">
|
||||
@@ -235,12 +249,14 @@
|
||||
<div class="component-btns">
|
||||
<div class="btns-row two-col">
|
||||
<div class="btns-col-1">
|
||||
<button type="button" class="btn btn-full btn-l btn-secondary" onclick="ENV.module.confirmPopup.close();">
|
||||
<button type="button" class="btn btn-full btn-l btn-secondary"
|
||||
onclick="ENV.module.confirmPopup.close();">
|
||||
<span class="btn-txt">동의 안함</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btns-col-2">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary" onclick="formControl.confirmPopupOk()">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary"
|
||||
onclick="formControl.confirmPopupOk()">
|
||||
<span class="btn-txt">동의</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -256,13 +272,9 @@
|
||||
<!-- //모달 팝업 -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
let ENV = {
|
||||
|
||||
Reference in New Issue
Block a user