diff --git a/~dev_rating/application/bootstrap.php b/~dev_rating/application/bootstrap.php index f147ea9fc2e33c1e169cfc6e5e861561363110f8..a5ca469c961061a114d694aed5c703669a19c2ef 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 c2fa9048365d1f910244f2f8bbace36c628aba42..0000000000000000000000000000000000000000 --- 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 253fc289434c041f7194954615ece43aa53e29cb..0000000000000000000000000000000000000000 --- 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 40b28d58bcbdf347eeaae1a0e64e9b2869416dde..0000000000000000000000000000000000000000 --- 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 32e3d0f1d2c7f526c04f75de48ad0364aa62fab7..0000000000000000000000000000000000000000 --- 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