From 1deac2b7b882b027477deef480d19e31f7cc6d20 Mon Sep 17 00:00:00 2001 From: VladimirCherkasov <vcherckasov@yandex.ru> Date: Wed, 8 Jul 2015 15:23:15 +0300 Subject: [PATCH] fix --- ~dev_rating/application/bootstrap.php | 16 ------- .../application/views/departments.twig | 7 --- .../application/views/main_departments.twig | 45 ------------------- .../application/views/main_studygroups.twig | 32 ------------- ~dev_rating/application/views/studygroups | 7 --- 5 files changed, 107 deletions(-) delete mode 100644 ~dev_rating/application/views/departments.twig delete mode 100644 ~dev_rating/application/views/main_departments.twig delete mode 100644 ~dev_rating/application/views/main_studygroups.twig delete mode 100644 ~dev_rating/application/views/studygroups diff --git a/~dev_rating/application/bootstrap.php b/~dev_rating/application/bootstrap.php index f147ea9fc..a5ca469c9 100644 --- a/~dev_rating/application/bootstrap.php +++ b/~dev_rating/application/bootstrap.php @@ -280,19 +280,3 @@ Route::set('javaSessionProvider', 'java_authentication') 'controller' => 'JavaAuthentication', 'action' => 'authentication' ]); - -Route::set('departments:main', 'departments(/<id>)', ['id' => '[0-9]+']) - ->defaults([ - 'controller' => 'Departments', // classes/Controller/Departments.php - 'id' => 1, - ]); - -// bars.com/departments -// bars.com/departments/78 - -Route::set('groups:main','studygroups(/<id>)', ['id' => '[0-9]+']) - ->defaults([ - 'controller' => 'StudyGroups', - 'action' => 'index', - 'id' => 1, - ]); diff --git a/~dev_rating/application/views/departments.twig b/~dev_rating/application/views/departments.twig deleted file mode 100644 index c2fa90483..000000000 --- a/~dev_rating/application/views/departments.twig +++ /dev/null @@ -1,7 +0,0 @@ -<ul> - {% for d in Departments %} - {% if d.Name != '' %} - <li value="{{ d.ID }}">{{ d.Name }}</li> - {% endif %} - {% endfor %} -</ul> \ No newline at end of file diff --git a/~dev_rating/application/views/main_departments.twig b/~dev_rating/application/views/main_departments.twig deleted file mode 100644 index 253fc2894..000000000 --- a/~dev_rating/application/views/main_departments.twig +++ /dev/null @@ -1,45 +0,0 @@ -<html> -<head> - {{ HTML.script('static/js/libs/jquery-1.11.1.min.js') |raw }} - {{ HTML.script('static/js/button.js')|raw }} - {{ HTML.script('static/js/config.js')|raw }} -</head> -<body> - <p>Введите id факультета:</p> - - <input type="text" size="3" name="num" min="1" max="10" value="0"> - <button id="button">OK</button> - - <p>Список кафедр:</p> - - <div id="container"> - <ul> - {% for d in Departments %} - {% if d.Name != '' %} - <li value="{{ d.ID }}">{{ d.Name }}</li> - {% endif %} - {% endfor %} - </ul> - </div> -</body> -</html> - - -{#<select> - {% for f in Faculties %} - <option value="{{ f.ID }}"> - {{ f.Name }} - </option> - {% endfor %} -</select>#} -{# <select id="faculty"> - <option value="1">мимими</option> - <option value="2">урурру</option> - <option value="3" class="mytext">:3</option> - <option>ROOOOOAAAR</option> - </select> - -<p> - meow -</p> -<p class="mytext">ROAR</p>#} \ No newline at end of file diff --git a/~dev_rating/application/views/main_studygroups.twig b/~dev_rating/application/views/main_studygroups.twig deleted file mode 100644 index 40b28d58b..000000000 --- a/~dev_rating/application/views/main_studygroups.twig +++ /dev/null @@ -1,32 +0,0 @@ -<html> -<head> - {{ HTML.script('static/js/libs/jquery-1.11.1.min.js') |raw }} - {{ HTML.script('static/js/button_groups.js')|raw }} - {{ HTML.script('static/js/config.js')|raw }} -</head> -<body> - -<p>Список групп:</p> - -<div> - <select> - {% for g in Groups %} - {% if g.Name != '' %} - <option value="{{ g.ID }}">{{ g.Name }}</option> - {% endif %} - {% endfor %} - </select> -</div> - -<div> - <ul> - {% for s in Students %} - {% if s.Name != '' %} - <li value="{{ s.ID }}">{{ s.Name }}</li> - {% endif %} - {% endfor %} - </ul> -</div> - -</body> -</html> diff --git a/~dev_rating/application/views/studygroups b/~dev_rating/application/views/studygroups deleted file mode 100644 index 32e3d0f1d..000000000 --- a/~dev_rating/application/views/studygroups +++ /dev/null @@ -1,7 +0,0 @@ -<select> - {% for s in Students %} - {% if s.Name != '' %} - <option value="{{ s.ID }}">{{ s.Name }}</option> - {% endif %} - {% endfor %} -</select> \ No newline at end of file -- GitLab