Skip to content
Snippets Groups Projects
Commit e062a6bc authored by RomanSteinberg's avatar RomanSteinberg
Browse files

FIX: group selection on discipline creation page (students step)

parent 9552c2e3
Branches
Tags
No related merge requests found
......@@ -65,7 +65,7 @@ class Controller_Teacher_Discipline extends Controller_UserEnvironment {
$twig->User = $this->user;
$twig->Discipline = $this->GetDisciplineInfo($id);
$twig->GradesList = Model_Grades::toArray();
$twig->Groups = Model_Groups::orderByGroups($twig->Discipline['GradeID'], $twig->Discipline['FacultyID']);
$twig->GroupsList = Model_Groups::orderByGroups($twig->Discipline['GradeID'], $twig->Discipline['FacultyID']);
$students = Model_Students::ofDiscipline($id);
$stdHandled = array();
......
......@@ -74,7 +74,7 @@
</select>
<select class="SelectStudyGroup defaultForm">
<option value="0">Выберите группу:</option>
{% for Group in Groups %}
{% for Group in GroupsList %}
<option value="{{ Group.ID }}">Группа {{ Group.GroupNum }} - {{ Group.SpecName }}</option>
{% endfor %}
</select>
......
......@@ -22,7 +22,7 @@ $(function() {
var jStudentEmptyPrototype = $($.parseHTML(
"<p class='notification'>Нет результатов... Возможно, студенты, соответствующие критериям поиска, уже прикреплены.</p>"));
var jGroupWrapPrototype = $($.parseHTML( "<select class='SelectStudyGroup default_select'>\
var jGroupWrapPrototype = $($.parseHTML( "<select class='SelectStudyGroup defaultForm'>\
<option value='0'>Выберите группу:</option>"));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment