FAISP/src/main/resources/templates/budget/budgetingOrgModal.html

62 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<style>
.scroll {
overflow-x: hidden;
overflow-y: auto;
height: 170px;
}
</style>
<div class="modal-header">
<h4 class="modal-title" th:text="예산편성"></h4>
<button type="button" class="btn btn-danger" data-bs-dismiss="modal" aria-hidden="true">x</button>
</div>
<div class="modal-body">
<form id="budgetForm" action="#">
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<input type="hidden" id="orgYear" name="orgYear" th:value="${searchParams.year}"/>
<input type="hidden" id="budgetCount" name="budgetCount" th:value="${#lists.size(list)}"/>
<div class=" panel-body text-center">
<table id="data-table-default" class="table table-striped table-bordered align-middle">
<thead>
<tr>
<th class="text-nowrap" width="20%">사업명</th>
<th class="text-nowrap" width="20%">구분</th>
<th class="text-nowrap" width="20%">세부내역</th>
<th class="text-nowrap" width="20%">편성액</th>
</tr>
</thead>
<tbody>
<tr class="odd gradeX reporterTr grid" th:each="info, i : ${list}">
<th:block>
</th:block>
<td th:text="${info?.budgetNameL1}"></td>
<td th:text="${info?.budgetNameL2}"></td>
<td th:text="${info?.budgetNameL3}"></td>
<td><input type="text"
th:data-name1="${info?.budgetNameL1}"
th:data-name2="${info?.budgetNameL2}"
th:data-name3="${info?.budgetNameL3}"
class="form-control text-end" th:id="'amount'+${i.index}" th:value="${info?.amount}"
oninput="this.value = parseInt(this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'));">
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
<div class="modal-footer">
<!-- <a href="javascript:;" class="btn btn-yellow" id="tempBtn">임시저장</a> -->
<a href="javascript:;" class="btn btn-blue" id="budgetSaveBtn">저장</a>
<a href="javascript:;" class="btn btn-blue" id="modifyBtn" th:if="${cmd eq 'update'}">수정</a>
</div>
<!--<div class="modal-footer">
<a class="btn btn-yellow">임시저장</a>
<a class="btn btn-success">결재</a>
<a class="btn btn-blue">작성</a>
</div>-->
</html>