kcgFileManager/src/main/resources/templates/admin/boardCategoryTable.html

24 lines
951 B
HTML

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<table class="table table-striped">
<thead th:data-depth="${depth}">
<tr>
<th></th>
<th th:text="${depth==1?'대분류':(depth==2?'연도':(depth==3?'중분류':'소분류'))}"></th>
</tr>
</thead>
<tbody th:id="|depth${depth}Category|">
<tr class="categoryTr" th:each="boardCategory:${categoryList}">
<td>
<input type="hidden" class="categorySeq" th:value="${boardCategory.categorySeq}">
<input type="checkbox" class="trCheckBox" th:value="${boardCategory.depth}">
</td>
<td>
<input type="hidden" class="depth" th:value="${boardCategory.depth}">
<input type="hidden" class="parentCategory" th:value="${boardCategory.parentCategory}">
<input type="text" class="form-control categoryName border-0 text-center bg-transparent" th:value="${boardCategory.categoryName}" readonly>
</td>
</tr>
</tbody>
</table>
</html>