{% extends 'teacher/discipline/MapBase' %} {% set step_3 = 'active' %} {% block map_content %} <div class="TeachersList"> <div class="BindTeachersList"> <h2 class="BlueTitle">Прикрепленные преподаватели</h2> {% for Teacher in BindTeachersList %} <div class="Teacher" id="{{ Teacher.TeacherID }}"> <div class="Name">{{ Teacher.TeacherLast }} {{ Teacher.TeacherFirst }} {{ Teacher.TeacherSecond }}</div> {% if Teacher.isAuthor == 0 %} <div class="Action_UnbindTeacher Action">Отсоединить</div> {% else %} <div class="Action">Автор дисциплины</div> {% endif %} </div> {% endfor %} </div> <div class="SearchTeachers"> <h2 class="BlueTitle">Поиск преподавателей</h2> <div class="SearchSettings"> <input type="hidden" class="HiddenInputFacultyID" value="{{ Discipline.FacultyID }}"> <select class="SelectFaculty default_select"> {% for Faculty in FacultiesList %} <option value="{{ Faculty.FacultyID }}" {% if Discipline.FacultyID == Faculty.FacultyID %}selected{% endif %}>{{ Faculty.FacultyName }}</option> {% endfor %} </select> <select class="SelectDepartment default_select"> <option value="0">Выберите кафедру (не обязательно)</option> {% for Dep in Departments %} <option value="{{ Dep.DepID }}">{{ Dep.DepName }}</option> {% endfor %} </select> <input tupe="text" class="InputTeacherName default_input_text" placeholder="Фамилия Имя Отчество" value=""> </div> <div class="SearchResult"> {% for Teacher in TeachersList %} <div class="Teacher" id="{{ Teacher.TeacherID }}"> <div class="Name">{{ Teacher.TeacherLast }} {{ Teacher.TeacherFirst }} {{ Teacher.TeacherSecond }}</div> <div class="Action_BindTeacher Action">Присоединить</div> </div> {% endfor %} </div> </div> </div> {% endblock %}