2023-01-04 00:04:39 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
|
|
|
|
<div class="modal-header bg-dark">
|
2023-01-04 08:54:59 +00:00
|
|
|
<h5 class="modal-title text-white" id="ciaSaftyDemandViewModalLabel">치안수요 열람</h5>
|
2023-01-04 00:04:39 +00:00
|
|
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
|
</div>
|
2023-01-04 08:54:59 +00:00
|
|
|
<div class="modal-body" id="ciaSaftyDemandViewBody">
|
2023-01-04 00:44:48 +00:00
|
|
|
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
|
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
|
<button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button" role="tab" aria-controls="boardTabPanel" aria-selected="true">본문</button>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item" role="presentation" th:if="${#lists.size(cia.fileList)>0}">
|
|
|
|
|
<button class="nav-link" id="fileTab" data-bs-toggle="tab" data-bs-target="#fileTabPanel" type="button" role="tab" aria-controls="fileTabPanel" aria-selected="false" th:text="${#strings.concat('첨부파일(', #lists.size(cia.fileList), ')')}"></button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="tab-content bg-white border border-top-0 p-2">
|
|
|
|
|
<div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0">
|
|
|
|
|
<div class="row mb-1">
|
|
|
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">작성일시</label>
|
|
|
|
|
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
|
|
|
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">작성자</label>
|
2023-01-05 09:00:37 +00:00
|
|
|
<label class="col-sm-2 col-form-label col-form-label-sm text-start">
|
|
|
|
|
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
|
|
|
|
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option>
|
|
|
|
|
</th:block>
|
|
|
|
|
</label>
|
2023-01-04 00:04:39 +00:00
|
|
|
</div>
|
2023-01-04 00:44:48 +00:00
|
|
|
<hr class="my-1">
|
|
|
|
|
<div class="row mb-1">
|
2023-01-04 08:54:59 +00:00
|
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">지역특성</label>
|
2023-01-04 00:44:48 +00:00
|
|
|
<div class="col-sm-11 form-control-sm" th:utext="${#strings.replace(cia.saftyDemandInfo.localInfo, lineSeparator, '<br>')}"></div>
|
2023-01-04 00:04:39 +00:00
|
|
|
</div>
|
2023-01-04 00:44:48 +00:00
|
|
|
<hr class="my-1">
|
|
|
|
|
<div class="row mb-1">
|
2023-01-04 08:54:59 +00:00
|
|
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">예상문제점</label>
|
|
|
|
|
<div class="col-sm-11 form-control-sm" th:utext="${#strings.replace(cia.saftyDemandInfo.outlookProblem, lineSeparator, '<br>')}"></div>
|
2023-01-04 00:04:39 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-01-04 00:44:48 +00:00
|
|
|
<div class="tab-pane fade p-2" id="fileTabPanel" role="tabpanel" tabindex="0">
|
|
|
|
|
<div class="row mb-3">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<table class="table table-sm" id="fileTable">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>파일명</th>
|
|
|
|
|
<th>사이즈</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<th:block th:if="${#lists.isEmpty(cia.fileList)}">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">파일이 없습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</th:block>
|
|
|
|
|
<th:block th:unless="${#lists.isEmpty(cia.fileList)}">
|
|
|
|
|
<th:block th:each="file:${cia.fileList}">
|
|
|
|
|
<tr class="fileInfoTr">
|
|
|
|
|
<td>
|
|
|
|
|
<a href="#" class="fileDownLink" data-board="ciWork"
|
|
|
|
|
th:data-parentkey="${file.ciKey}" th:data-fileseq="${file.fileSeq}"
|
|
|
|
|
th:text="|${file.origNm}.${file.fileExtn}|"></a>
|
|
|
|
|
</td>
|
|
|
|
|
<td th:text="${file.fileSize}"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</th:block>
|
|
|
|
|
</th:block>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2023-01-04 00:04:39 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-01-04 00:44:48 +00:00
|
|
|
</div>
|
2023-01-04 00:04:39 +00:00
|
|
|
</div>
|
2023-01-04 08:54:59 +00:00
|
|
|
<div class="modal-footer justify-content-between bg-light">
|
|
|
|
|
<div class="col-auto">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-auto">
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:if="${viewUserSeq eq cia.wrtUserSeq}">
|
|
|
|
|
<button type="button" class="btn btn-warning" id="editBtn" th:data-cikey="${cia.ciKey}">수정</button>
|
|
|
|
|
</th:block>
|
2023-01-04 00:44:48 +00:00
|
|
|
</div>
|