40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
<!DOCTYPE HTML>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<div th:fragment="filesList">
|
|
<th:block th:each="file, rowStat : *{files}">
|
|
|
|
<div class="row" th:id="|files${rowStat.index}|"
|
|
th:style="${file.deleted} ? 'display: none;' :''">
|
|
<input type="hidden" th:field="*{files[__${rowStat.index}__].id}"/>
|
|
<input type="hidden"
|
|
th:field="*{files[__${rowStat.index}__].deleted}"/>
|
|
<input type="hidden"
|
|
th:field="*{files[__${rowStat.index}__].name}"/>
|
|
<input type="hidden"
|
|
th:field="*{files[__${rowStat.index}__].tmpFileName}"/>
|
|
<div class="col-2">
|
|
<a class="btn btn-danger float-right"
|
|
th:onclick="|$('#files${rowStat.index}\\.deleted').val('true'); $('#files${rowStat.index}').hide(); |">
|
|
<span aria-hidden="true"><i class="fa fa-times"/></span>
|
|
</a>
|
|
</div>
|
|
<div class="col-10">
|
|
<a th:onclick="${file.id==null} ? 'downloadFile('+${file.tmpFileName}+',null,\''+${file.name}+'\')':
|
|
'downloadFile(null,'+${file.id}+',\''+${file.name}+'\')' "
|
|
href="javascript:void(0)"
|
|
th:text="*{files[__${rowStat.index}__].name}">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</th:block>
|
|
</div>
|
|
</body>
|
|
|
|
|
|
</body>
|
|
</html> |