49 lines
2.0 KiB
HTML

<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<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">
<form action="/statistic/statistic" method="post" th:object="${statisticForm}">
<div class="row">
<div class="col col-md-2">
<div class="form-group">
<label for="period">Период отчетности</label>
</div>
</div>
<div class="col col-md-4">
<div class="form-group">
<select class="form-select form-control"
id="period" aria-label="multiple select example"
th:field="*{reportPeriod}">
<option th:each="p : ${reportPeriods}"
th:value="${p.id}"
th:text="${#calendars.format(p.startDate, 'dd.MM.yyyy') + ' - ' + #calendars.format(p.endDate, 'dd.MM.yyyy')}">
</option>
</select>
</div>
</div>
<div class="col col-md-4">
<div class="form-group">
<button type="submit" class="btn btn-outline-dark">Применить</button>
</div>
</div>
</div>
</form>
<!-- Таблица рейтинга -->
<table class="table table-bordered table-striped mt-3">
<thead class="table-dark">
<tr>
<th scope="col">ФИО</th>
<th scope="col">Балл</th>
</tr>
</thead>
<tbody>
<tr th:each="r : ${rating}">
<td th:text="${r.aspirant.surname + ' '+ r.aspirant.name + ' '+ r.aspirant.patronymic }"></td>
<td th:text="${r.score}"></td>
</tr>
</tbody>
</table>
</div>
</html>