46 lines
2.3 KiB
HTML

<html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
layout:decorate="~{default}">
<div class="container" layout:fragment="content">
<h3 th:text="${'Редактирование отчета аспиранта от '} +${#calendars.format(report.createDate, 'dd.MM.yyyy HH:mm')}"></h3>
<form action="#" th:action="@{/report/saveReport}"
th:object="${report}"
method="post">
<input type="hidden" th:field="*{id}">
<div class="form-group" th:each="i, ind : ${indicators}">
<p th:text="${i.name}"></p>
<p th:text="${i.proofDocuments}"></p>
<p th:text="'Максимальное количество баллов за показатель: '+ ${i.max}"></p>
<div class="mb-3">
<label for="formFile" class="form-label">Загрузка подтверждающих документов</label>
<input class="form-control" type="file" id="formFile">
<input class="form-control" type="file" id="formFile2">
<input class="form-control" type="file" id="formFile3">
</div>
</div>
<button name="save" type="submit" class="btn btn-outline-dark">Сохранить</button>
<button name="delete"
type="submit"
class="btn btn-outline-dark"
onclick="return confirm('Удалить запись?')">
Удалить
</button>
<a href="/report/reportList" class="btn btn-outline-dark">Отмена</a>
</form>
<div th:if="${indicators.totalPages > 0}" class="pagination">
<span style="float: left; padding: 5px 5px;">Показатели:</span>
</div>
<div th:if="${indicators.totalPages > 0}" class="pagination"
th:each="pageNumber : ${pageNumbers}">
<a th:href="@{'/report/editReport/' + ${report.id}+'?size=' + ${indicators.size} + '&page='+${pageNumber}}"
th:text=${pageNumber}
th:class="${pageNumber == indicators.number+1} ? active"></a>
</div>
<link rel="stylesheet" href="/webjars/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/webjars/bootstrap-glyphicons/bdd2cbfba0/css/bootstrap-glyphicons.css"/>
</div>
</html>