From e8be91fbdb30d4491597cf1fd24c7d461cf42688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=A0=D1=83=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D1=86?= <andrey.rudenets@gmail.com> Date: Mon, 25 Aug 2014 00:10:05 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=20=D0=B5=D1=89=D0=B5=20=D0=BC=D0=B5?= =?UTF-8?q?=D0=BB=D0=BA=D0=BE=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ~dev_rating/application/classes/Controller/Admin/Teachers.php | 3 ++- ~dev_rating/application/views/admin/teachers/add.twig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/~dev_rating/application/classes/Controller/Admin/Teachers.php b/~dev_rating/application/classes/Controller/Admin/Teachers.php index efb4bb847..22fb88cec 100644 --- a/~dev_rating/application/classes/Controller/Admin/Teachers.php +++ b/~dev_rating/application/classes/Controller/Admin/Teachers.php @@ -47,7 +47,8 @@ class Controller_Admin_Teachers extends Controller_UserEnvi { } // VIEW $twig = Twig::factory('admin/teachers/add'); - $twig->Faculties = $jobPositionsHandled; + $twig->JobPositions = $jobPositionsHandled; + $twig->Faculties = $facultiesHandled; $twig->User = $this->UserInfo; $this->response->body($twig); } diff --git a/~dev_rating/application/views/admin/teachers/add.twig b/~dev_rating/application/views/admin/teachers/add.twig index 0eb33e761..b4173e393 100644 --- a/~dev_rating/application/views/admin/teachers/add.twig +++ b/~dev_rating/application/views/admin/teachers/add.twig @@ -29,7 +29,7 @@ <select id="jobPositionSelect"> <option value="0">--- Академическая должность ---</option> {% for row in JobPositions %} - <option value="{{ row.ID }}">{{ row.Name }} ({{ row.Abbr }})</option> + <option value="{{ row.ID }}">{{ row.Name }}</option> {% endfor %} </select> <select id="facultySelect"> -- GitLab