diff --git a/deploy/phpConfig/sidePanel/admin.json b/deploy/phpConfig/sidePanel/admin.json index b1e7aec32bac8c94672cbba083e276c2cea0b414..66fddee1b797ca6af8fb3ecc545a9fd55015fd61 100644 --- a/deploy/phpConfig/sidePanel/admin.json +++ b/deploy/phpConfig/sidePanel/admin.json @@ -2,7 +2,7 @@ { "Title": "Структура ЮФУ", "Items": [ - { "Title": "Подразделения", "Anchor": "faculties" }, + { "Title": "Подразделения", "Anchor": "faculties", "Disabled": "true" }, { "Title": "Кафедры", "Anchor": "departments", "Disabled": "true" }, { "Title": "Направления подготовки", "Anchor": "specializations", "Disabled": "true" } ] diff --git a/media/js/discipline/createDiscipline.js b/media/js/discipline/createDiscipline.js index ca447bdede1bc046830ef8d07431bd9828ae31c3..41c1802efd5cffea320ce0b7bfc4b92f757dfece 100644 --- a/media/js/discipline/createDiscipline.js +++ b/media/js/discipline/createDiscipline.js @@ -5,7 +5,7 @@ $(function() { var jSubjectInput = $("input.InputSubject "); var jGradeSelect = $("select.SelectGrade"); var jExamTypeRadio = $("input.ExamType"); - var jCompoundSelect = $("select.SelectCompound"); + // var jCompoundSelect = $("select.SelectCompound"); // Рзменения базовых параметров дисциплины $(".AddDiscipline").click(function() @@ -27,7 +27,7 @@ $(function() { ++errCount; } - var CompoundID = parseInt(jCompoundSelect.val()); + // var CompoundID = parseInt(jCompoundSelect.val()); var examType = jExamTypeRadio.filter(":radio:checked").val(); if (examType === undefined) { @@ -75,13 +75,13 @@ $(function() { jGradeSelect.change(function() { if (parseInt($(this).val()) > 0) { jGradeSelect.css("border-color", INPUT_BORDER_COLOR); - jCompoundSelect.prop("disabled", false); - $.post(g_URLdir + "handler/discipline/getCompounds", {'gradeID' : parseInt($(this).val()) }, - function(data){ - jCompoundSelect.html(data.response); - }, "json"); - }else{ - jCompoundSelect.prop("disabled", true); + // jCompoundSelect.prop("disabled", false); + // $.post(g_URLdir + "handler/discipline/getCompounds", {'gradeID' : parseInt($(this).val()) }, + // function(data){ + // jCompoundSelect.html(data.response); + // }, "json"); + } else { + // jCompoundSelect.prop("disabled", true); } }); diff --git a/~dev_rating/application/views/teacher/discipline/create.twig b/~dev_rating/application/views/teacher/discipline/create.twig index a8b5ab6d39fdb580074a41647ccd1f6a6c3d2406..7179825faf2d7d86d498dd4a21bf17a8b75e7e55 100644 --- a/~dev_rating/application/views/teacher/discipline/create.twig +++ b/~dev_rating/application/views/teacher/discipline/create.twig @@ -65,17 +65,17 @@ </div> </div> </div> - <div class="LayerSection"> - <div class="itemBlock"> - <div class="title">Р’ составе объединенной дисциплины:</div> - <div class="field"> - <select class="SelectCompound defaultForm" disabled> - <option value="0">-- Нет --</option> + {#<div class="LayerSection">#} + {#<div class="itemBlock">#} + {#<div class="title">Р’ составе объединенной дисциплины:</div>#} + {#<div class="field">#} + {#<select class="SelectCompound defaultForm" disabled>#} + {#<option value="0">-- Нет --</option>#} - </select> - </div> - </div> - </div> + {#</select>#} + {#</div>#} + {#</div>#} + {#</div>#} <div class="LayerSection"> <div class="itemBlock"> <div class="title">Бонусные баллы:</div>