seminar/src/main/resources/templates/admin/managersList.html
2025-03-18 17:50:06 +04:00

43 lines
1.8 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">
<!-- Кнопка добавления нового научного руководителя -->
<a href="/admin/editManager/0" class="btn btn-outline-dark mb-3">
<i class="fa fa-plus-square" aria-hidden="true"> Добавить научного руководителя</i>
</a>
<!-- Таблица научных руководителей -->
<table class="table table-bordered table-striped mt-3">
<thead class="table-dark">
<tr>
<th scope="col">ФИО</th>
<th scope="col">Должность</th>
<th scope="col">Степень</th>
<th scope="col">Звание</th>
<th scope="col">Научные интересы</th>
<th scope="col">Действия</th>
</tr>
</thead>
<tbody>
<tr th:each="m : ${managers}">
<td th:text="${m.name}"></td>
<td th:text="${m.position}"></td>
<td th:text="${m.degree}"></td>
<td th:text="${m.title}"></td>
<td>
<ul>
<li th:each="interest : ${m.interests}" th:text="${interest}"></li>
</ul>
</td>
<td>
<!-- Ссылка на редактирование -->
<a th:href="@{'/admin/editManager/' + ${m.id}}" class="btn btn-sm btn-primary">
<i class="fa fa-edit" aria-hidden="true"></i> Редактировать
</a>
</td>
</tr>
</tbody>
</table>
</div>
</html>