feat(web): профиль студента и ростер группы для преподавателя

This commit is contained in:
2026-10-27 17:45:13 +03:00
parent fa097518f8
commit 753cb5ba0a
15 changed files with 994 additions and 6 deletions

View File

@@ -23,7 +23,13 @@
<h2 class="section-title">Группы курса</h2>
<div class="card card-flush">
<table>
<thead><tr><th>Группа</th><th>Добавлена</th></tr></thead>
<thead>
<tr>
<th>Группа</th>
<th>Добавлена</th>
<th th:unless="${currentUser.admin}" data-nosort></th>
</tr>
</thead>
<tbody>
<tr th:each="group : ${groups}">
<td>
@@ -31,13 +37,19 @@
th:href="@{/admin/groups/{id}(id=${group.groupId})}"
class="font-mono"
th:text="${group.groupId}">—</a>
<span th:unless="${currentUser.admin}" class="font-mono"
th:text="${group.groupId}">—</span>
<a th:unless="${currentUser.admin}"
th:href="@{/teacher/courses/{courseId}/groups/{groupId}(courseId=${course.id}, groupId=${group.groupId})}"
class="font-mono"
th:text="${group.groupId}">—</a>
</td>
<td class="text-muted" th:text="${group.addedAt}">—</td>
<td th:unless="${currentUser.admin}" class="text-center">
<a class="btn btn-sm btn-secondary"
th:href="@{/teacher/courses/{courseId}/groups/{groupId}(courseId=${course.id}, groupId=${group.groupId})}">Студенты</a>
</td>
</tr>
<tr th:if="${#lists.isEmpty(groups)}">
<td colspan="2" class="empty">К курсу не привязано ни одной группы.</td>
<td th:attr="colspan=${currentUser.admin ? 2 : 3}" class="empty">К курсу не привязано ни одной группы.</td>
</tr>
</tbody>
</table>