{% extends 'teacher/map/MapBase' %} {% block title %}Конструктор УКД{% endblock %} {# head -> title #} {% block map_content %} <div class="StudentsList"> <input type="hidden" class="HiddenInputFacultyID" value="{{ Discipline.FacultyID }}"> <div class="AttachedStudentsList"> <h2 class="BlueTitle">Прикрепленные студенты</h2> {% set NowGroupNum = 0 %} {% for Student in Students %} {% if NowGroupNum != Student.GroupNum %} <div>Курс {{ Student.Grade }}, Группа {{ Student.GroupNum }}</div> {% set NowGroupNum = Student.GroupNum %} {% endif %} <div id="{{ Student.StudentID }}" class="Student {% if Student.Type == 'detach' %}StatusUnbind{% else %}StatusBind{% endif %}"> <span class="Name">{{ Student.LastName }} {{ Student.FirstName }} {{ Student.SecondName }}</span> {% if Student.Type == 'detach' %} <span class="action Action_BindStudent">Прикрепить студента</span> {% else %} <span class="action Action_UnbindStudent">Отсоединить студента</span> {% endif %} </div> {% endfor %} </div> <div class="SearchStudents"> <h2 class="BlueTitle">Поиск студентов</h2> <div class="SearchSettings"> <select class="SelectGrade default_select"> <option value="0">Выберите курс:</option> {% for Grade in GradesList %} <option value="{{ Grade.ID }}" {% if Grade.ID == Discipline.GradeID %}selected{% endif %}>{{ Grade.Title }}</option> {% endfor %} </select> <select class="SelectStudyGroup default_select"> <option value="0">Выберите группу:</option> {% for Group in StudyGroups %} <option value="{{ Group.GroupID }}">Группа {{ Group.GroupNum }} - {{ Group.SpecName }}</option> {% endfor %} </select> <input tupe="text" class="InputStudentName default_input_text" placeholder="Фамилия Имя Отчество" value=""> </div> <div class="SearchResult"> </div> </div> </div> {% endblock %}