Newer
Older
{% block discipline_media %}
{{ HTML.script('media/js/discipline/EditStudents.js')|raw }}
{% endblock %}
<div id="{{ Student.ID }}" class="Student {% if Student.Type == 'detach' %}StatusUnbind{% else %}StatusBind{% endif %}">
<span class="Name">{{ Student.LastName }} {{ Student.FirstName }} {{ Student.SecondName }}</span>
{% if Student.Type == 'detach' %}
<button class="action Action_BindStudent">Прикрепить студента</button>
{% else %}
<button class="action Action_UnbindStudent">Отсоединить студента</button>
{% endif %}
</div>
{% endmacro %}
{% for group in Groups %}
<div>
<div class="GradeAndGroupTitle ActionShowHideGroupContainer" id="{{ group.GroupID }}">
<span class="info">{{ group.Degree }}, курс {{ group.GradeNum }} группа {{ group.GroupNum }}</span>
<span class="Action">Открыть список ▼</span>
</div>
<div class="GroupContainer">
<div class="hideListAction"></div>
{% for student in group.students %}
<div id="{{ student.ID }}" class="Student {% if student.Type == 'detach' %}StatusUnbind{% else %}StatusBind{% endif %}">
<span class="Name">{{ student.LastName }} {{ student.FirstName }} {{ student.SecondName }}</span>
{% if student.Type == 'detach' %}
<button class="action Action_BindStudent">Прикрепить студента</button>
{% else %}
<button class="action Action_UnbindStudent">Отсоединить студента</button>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endfor %}
{% endmacro %}
{% import 'teacher/discipline/EditStudents' as idx %}
<input type="hidden" class="HiddenInputFacultyID" value="{{ Discipline.FacultyID }}">
<h2 class="BlueTitle">Прикрепленные студенты</h2>
{% set NowGroupNum = -1 %}
{% for Student in Students %}
{% if NowGroupNum != Student.GroupNum %}
{% if not loop.first %}
</div>
{% endif %}
<div class="GradeAndGroupTitle ActionShowHideGroupContainer" id="{{ Student.GroupID }}">
<span class="info">{{ Student.Degree }}, курс {{ Student.GradeNum }} группа {{ Student.GroupNum }}</span>
<span class="Action">Открыть список ▼</span>
<div class="GroupContainer GroupID_{{ Student.GroupID }}">
<div class="hideListAction"></div>
{% set NowGroupNum = Student.GroupNum %}
{{ idx.outputStudent(Student, HTML) }}
{% if loop.last %}
</div>
{% endif %}
{% endfor %}
</div> #}
<input type="hidden" class="HiddenInputFacultyID" value="{{ Discipline.FacultyID }}">
<div class="GeneralStudentsList">
<h2 class="BlueTitle">Прикрепленные студенты</h2>
</div>
<br>
<div class="AttachedStudentsList">
<h2 class="BlueTitle">Еще студенты</h2>
<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.GradeID }}" {% if Grade.GradeID == 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>