Skip to content
Snippets Groups Projects
EditStudents.twig 1.99 KiB
Newer Older
{% extends 'teacher/map/MapBase' %} 

{% block title %}Конструктор УКД{% endblock %} {# head -> title #}

{% block map_content %}
<div class="StudentsList">
Anton's avatar
Anton committed
	<input type="hidden" class="HiddenInputFacultyID" value="{{ Discipline.FacultyID }}">
	<div class="AttachedStudentsList">
		<h2 class="BlueTitle">Прикрепленные студенты</h2>
Anton's avatar
Anton committed
		{% set NowGroupNum = 0 %}
		{% for Student in Students %}
Anton's avatar
Anton committed
			{% 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>
{% endblock %}