37 lines
1.7 KiB
HTML
37 lines
1.7 KiB
HTML
<!DOCTYPE HTML>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
</head>
|
|
<body>
|
|
<div th:fragment="filesList (isLatexAttach)" th:remove="tag">
|
|
<th:block th:each="file, rowStat : *{files}">
|
|
<span th:if="${(!isLatexAttach and file.isLatexAttach == null) or file.isLatexAttach == isLatexAttach}"
|
|
th:remove="tag">
|
|
<div class="row div-row-file" 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-10 div-file-name">
|
|
<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 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>
|
|
</span>
|
|
</th:block>
|
|
</div>
|
|
</body>
|
|
</html> |