Files
magistr/frontend/admin/views/schedule.html

133 lines
5.3 KiB
HTML

<div class="card create-card">
<div class="card-header-row">
<h2 id="schedule-rule-form-title">Новое правило расписания</h2>
<button type="button" class="btn-edit-classroom" id="schedule-rule-reset">Очистить форму</button>
</div>
<form id="schedule-rule-form" novalidate>
<input type="hidden" id="schedule-rule-id">
<div class="form-row">
<div class="form-group">
<label for="schedule-rule-subject">Дисциплина</label>
<select id="schedule-rule-subject" required>
<option value="">Загрузка...</option>
</select>
</div>
<div class="form-group">
<label for="schedule-rule-semester">Семестр</label>
<select id="schedule-rule-semester" required>
<option value="">Загрузка...</option>
</select>
</div>
<div class="form-group">
<label for="schedule-rule-active-from">Дата начала</label>
<input type="date" id="schedule-rule-active-from" required>
</div>
<div class="form-group">
<label for="schedule-rule-hours">Академические часы</label>
<input type="number" id="schedule-rule-hours" min="1" step="1" placeholder="72" required>
</div>
</div>
<div class="schedule-groups-panel">
<label class="schedule-section-label">Группы</label>
<div id="schedule-rule-groups" class="schedule-checkbox-grid"></div>
</div>
<div class="schedule-slots-panel">
<div class="card-header-row">
<h2>Слоты правила</h2>
<button type="button" class="btn-edit-classroom" id="schedule-slot-add">Добавить слот</button>
</div>
<div id="schedule-rule-slots" class="schedule-slots-list"></div>
</div>
<div class="form-row">
<button type="submit" class="btn-primary">Сохранить правило</button>
</div>
<div class="form-alert" id="schedule-rule-alert" role="alert"></div>
</form>
</div>
<div class="card">
<div class="card-header-row">
<h2>Правила динамического расписания</h2>
<button class="btn-primary" id="schedule-refresh">Обновить</button>
</div>
<div class="table-wrap">
<table id="schedule-table">
<thead>
<tr>
<th>ID</th>
<th>Дисциплина</th>
<th>Семестр</th>
<th>Группы</th>
<th>Начало</th>
<th>Часы</th>
<th>Слоты</th>
<th>Действия</th>
</tr>
</thead>
<tbody id="schedule-tbody">
<tr>
<td colspan="8" class="loading-row">Загрузка...</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="card create-card">
<div class="card-header-row">
<h2 id="time-slot-form-title">Новый временной слот</h2>
<button type="button" class="btn-edit-classroom" id="time-slot-reset">Очистить форму</button>
</div>
<form id="time-slot-form" novalidate>
<input type="hidden" id="time-slot-id">
<div class="form-row">
<div class="form-group">
<label for="time-slot-order">Номер пары</label>
<input type="number" id="time-slot-order" min="1" step="1" required>
</div>
<div class="form-group">
<label for="time-slot-start">Начало</label>
<input type="time" id="time-slot-start" required>
</div>
<div class="form-group">
<label for="time-slot-end">Окончание</label>
<input type="time" id="time-slot-end" required>
</div>
<div class="form-group">
<label for="time-slot-duration">Минут</label>
<input type="number" id="time-slot-duration" min="1" step="1" placeholder="90">
</div>
<button type="submit" class="btn-primary">Сохранить слот</button>
</div>
<div class="form-alert" id="time-slot-alert" role="alert"></div>
</form>
</div>
<div class="card">
<div class="card-header-row">
<h2>Сетка пар</h2>
<button class="btn-primary" id="time-slots-refresh">Обновить</button>
</div>
<div class="table-wrap">
<table id="time-slots-table">
<thead>
<tr>
<th>Пара</th>
<th>Начало</th>
<th>Окончание</th>
<th>Минут</th>
<th>Действия</th>
</tr>
</thead>
<tbody id="time-slots-tbody">
<tr>
<td colspan="5" class="loading-row">Загрузка...</td>
</tr>
</tbody>
</table>
</div>
</div>