Skip to content
Snippets Groups Projects
Commit 7e05ccaa authored by Anton Bagliy's avatar Anton Bagliy
Browse files

FIX: specialist grade in teacher index and bill

parent 87536e43
Branches
No related merge requests found
...@@ -125,7 +125,13 @@ let getGroupLoader = ($select, genParams) => { ...@@ -125,7 +125,13 @@ let getGroupLoader = ($select, genParams) => {
* @param {string} data.Degree * @param {string} data.Degree
*/ */
let getGradeOption = (data) => { let getGradeOption = (data) => {
let title = (data.Degree == 'master') ? 'Магистратура' : 'Курс'; let title = 'Курс';
if (data.Degree == 'master') {
title = 'Магистратура';
}
if (data.Degree == 'specialist') {
title = 'Специалитет';
}
let str = `${title} ${data.Num}`; let str = `${title} ${data.Num}`;
return `<option value='${data.ID}'>${str}</option>`; return `<option value='${data.ID}'>${str}</option>`;
}; };
......
...@@ -44,7 +44,10 @@ class Controller_Teacher_Index extends Controller_Environment_Teacher ...@@ -44,7 +44,10 @@ class Controller_Teacher_Index extends Controller_Environment_Teacher
$groupDesc = $dis->GroupNum . ' гр. бакалавриат' ; $groupDesc = $dis->GroupNum . ' гр. бакалавриат' ;
} }
if ($dis_group['Degree'] === 'master') { if ($dis_group['Degree'] === 'master') {
$groupDesc = $dis->GroupNum . 'гр. магистратура '; $groupDesc = $dis->GroupNum . ' гр. магистратура ';
}
if ($dis_group['Degree'] === 'specialist') {
$groupDesc = $dis->GroupNum . ' гр. специалитет ';
} }
if ($dis_group['FormID'] === 'очно-заочная') { if ($dis_group['FormID'] === 'очно-заочная') {
......
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