Files
magistr/frontend/admin/views/users.html
2026-08-20 00:55:27 +03:00

96 lines
4.6 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- ===== Users Tab ===== -->
<div class="card create-card">
<h2>Новый пользователь</h2>
<form id="create-form">
<div class="form-row">
<div class="form-group">
<label for="new-username">Имя пользователя</label>
<input type="text" id="new-username" placeholder="Имя пользователя" autocomplete="username" required>
</div>
<div class="form-group">
<label for="new-password">Пароль</label>
<input type="password" id="new-password" placeholder="Минимум 8 символов" autocomplete="new-password" required>
</div>
<div class="form-group">
<label for="new-role">Роль</label>
<select id="new-role">
<option value="STUDENT">Студент</option>
<option value="TEACHER">Преподаватель</option>
<option value="DEPARTMENT">Кафедра</option>
<option value="EDUCATION_OFFICE">Учебный отдел</option>
<option value="SCHEDULE_VIEWER">Просмотр расписаний</option>
<option value="ADMIN">Администратор</option>
</select>
</div>
<div class="form-group">
<label for="new-fullname">ФИО пользователя</label>
<input type="text" id="new-fullname" placeholder="Иванов Иван Иванович" required>
</div>
<div class="form-group">
<label for="new-jobtitle">Должность</label>
<input type="text" id="new-jobtitle" placeholder="Студент / Доцент" required>
</div>
<div class="form-group">
<label for="new-department">ID Кафедры</label>
<input type="number" id="new-department" placeholder="ID" required>
</div>
<button type="submit" class="btn btn-md btn-primary">Создать</button>
</div>
<div class="form-alert" id="create-alert" role="alert"></div>
</form>
</div>
<div class="card">
<h2>Все пользователи</h2>
<div class="registry-toolbar">
<div class="form-group registry-search">
<label for="users-search">Поиск</label>
<input type="search" id="users-search" placeholder="Логин, ФИО или должность">
</div>
<div class="form-group">
<label for="users-role-filter">Роль</label>
<select id="users-role-filter" data-native-select="true">
<option value="">Все роли</option>
<option value="ADMIN">Администратор</option>
<option value="EDUCATION_OFFICE">Учебный отдел</option>
<option value="DEPARTMENT">Кафедра</option>
<option value="SCHEDULE_VIEWER">Просмотр расписаний</option>
<option value="TEACHER">Преподаватель</option>
<option value="STUDENT">Студент</option>
</select>
</div>
<div class="form-group">
<label for="users-sort">Сортировка</label>
<select id="users-sort" data-native-select="true">
<option value="fullName,asc">По ФИО А–Я</option>
<option value="fullName,desc">По ФИО Я–А</option>
<option value="username,asc">По логину</option>
<option value="role,asc">По роли</option>
<option value="status,asc">По статусу</option>
</select>
</div>
</div>
<div class="form-alert" id="users-alert" role="alert"></div>
<div class="table-wrap">
<table id="users-table">
<thead>
<tr>
<th>ID</th>
<th>Имя пользователя</th>
<th>ФИО</th>
<th>Должность</th>
<th>Кафедра</th>
<th>Роль</th>
<th>Действия</th>
</tr>
</thead>
<tbody id="users-tbody">
<tr>
<td colspan="7" class="loading-row">Загрузка...</td>
</tr>
</tbody>
</table>
</div>
<div class="pagination" id="users-pagination"></div>
</div>