This commit is contained in:
Zuev
2026-10-02 04:07:56 +03:00
parent 97bf3cc50a
commit fc5801d683
42 changed files with 1201 additions and 305 deletions

View File

@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react';
import { CustomSelect } from '../../shared/ui/CustomSelect.jsx';
import { getSession } from '../../../admin/js/api.js';
import { addDays, toIsoDate } from '../../shared/dates.js';
@@ -356,7 +357,7 @@ export function DepartmentWorkspaceTab() {
{!isDepartmentRole && (
<div className="form-group" id="department-workspace-department-field">
<label htmlFor="department-workspace-department">Кафедра</label>
<select
<CustomSelect
id="department-workspace-department"
value={departmentId}
onChange={event => handleDepartmentChange(event.target.value)}
@@ -367,7 +368,7 @@ export function DepartmentWorkspaceTab() {
{departmentOptionLabel(department)}
</option>
))}
</select>
</CustomSelect>
</div>
)}
<div className="form-group">
@@ -471,7 +472,7 @@ export function DepartmentWorkspaceTab() {
<form id="department-teacher-assign-form" className="stack-form" onSubmit={submitAssign}>
<div className="form-group">
<label htmlFor="department-teacher-select">Преподаватель</label>
<select
<CustomSelect
id="department-teacher-select"
value={assignTeacherId}
onChange={event => setAssignTeacherId(event.target.value)}
@@ -492,7 +493,7 @@ export function DepartmentWorkspaceTab() {
))}
</>
)}
</select>
</CustomSelect>
</div>
<div className="form-group">
<label htmlFor="department-teacher-assign-comment">Комментарий</label>