From 768c040e86401c26c119165e36abc4a0bb0cb256 Mon Sep 17 00:00:00 2001 From: William Date: Sat, 19 Mar 2022 22:22:24 +0100 Subject: [PATCH] Commit --- .../pages/race/{teamtable/edit => configure/teams}/delete.php | 0 .../pages/race/{teamtable/edit => configure/teams}/index.php | 0 .../pages/race/{teamtable/edit => configure/teams}/update.php | 0 app/view/template/header.php | 2 +- public/race/{teamtable => configure}/index.php | 2 +- public/race/{teamtable/edit => configure/teams}/delete.php | 2 +- public/race/{teamtable/edit => configure/teams}/index.php | 2 +- public/race/{teamtable/edit => configure/teams}/update.php | 4 ++-- 8 files changed, 6 insertions(+), 6 deletions(-) rename app/view/pages/race/{teamtable/edit => configure/teams}/delete.php (100%) rename app/view/pages/race/{teamtable/edit => configure/teams}/index.php (100%) rename app/view/pages/race/{teamtable/edit => configure/teams}/update.php (100%) rename public/race/{teamtable => configure}/index.php (69%) rename public/race/{teamtable/edit => configure/teams}/delete.php (89%) rename public/race/{teamtable/edit => configure/teams}/index.php (64%) rename public/race/{teamtable/edit => configure/teams}/update.php (94%) diff --git a/app/view/pages/race/teamtable/edit/delete.php b/app/view/pages/race/configure/teams/delete.php similarity index 100% rename from app/view/pages/race/teamtable/edit/delete.php rename to app/view/pages/race/configure/teams/delete.php diff --git a/app/view/pages/race/teamtable/edit/index.php b/app/view/pages/race/configure/teams/index.php similarity index 100% rename from app/view/pages/race/teamtable/edit/index.php rename to app/view/pages/race/configure/teams/index.php diff --git a/app/view/pages/race/teamtable/edit/update.php b/app/view/pages/race/configure/teams/update.php similarity index 100% rename from app/view/pages/race/teamtable/edit/update.php rename to app/view/pages/race/configure/teams/update.php diff --git a/app/view/template/header.php b/app/view/template/header.php index cd4f9f3..0f36deb 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -45,7 +45,7 @@

Tillatelser

diff --git a/public/race/teamtable/index.php b/public/race/configure/index.php similarity index 69% rename from public/race/teamtable/index.php rename to public/race/configure/index.php index 0b52cb6..d85750b 100644 --- a/public/race/teamtable/index.php +++ b/public/race/configure/index.php @@ -1,4 +1,4 @@ redirect('edit/'); \ No newline at end of file +$app->redirect('teams/'); \ No newline at end of file diff --git a/public/race/teamtable/edit/delete.php b/public/race/configure/teams/delete.php similarity index 89% rename from public/race/teamtable/edit/delete.php rename to public/race/configure/teams/delete.php index fd0e0b5..f89ddcb 100644 --- a/public/race/teamtable/edit/delete.php +++ b/public/race/configure/teams/delete.php @@ -26,7 +26,7 @@ if (!$team) if ($confirm) { $app->view('template/header', ['title' => 'Bekreft sletting']); - $app->view('pages/race/teamtable/edit/delete', ['team' => $team]); + $app->view('pages/race/configure/teams/delete', ['team' => $team]); $app->view('template/footer'); die(); } diff --git a/public/race/teamtable/edit/index.php b/public/race/configure/teams/index.php similarity index 64% rename from public/race/teamtable/edit/index.php rename to public/race/configure/teams/index.php index 39578c2..1ff4c5c 100644 --- a/public/race/teamtable/edit/index.php +++ b/public/race/configure/teams/index.php @@ -5,5 +5,5 @@ $model = $app->model('Teamtable'); $teams = $model->getAll(); $app->view('template/header', ['title' => 'Endre lagtabell']); -$app->view('pages/race/teamtable/edit/index', ["teams" => $teams]); +$app->view('pages/race/configure/teams/index', ["teams" => $teams]); $app->view('template/footer'); \ No newline at end of file diff --git a/public/race/teamtable/edit/update.php b/public/race/configure/teams/update.php similarity index 94% rename from public/race/teamtable/edit/update.php rename to public/race/configure/teams/update.php index f721290..3c19748 100644 --- a/public/race/teamtable/edit/update.php +++ b/public/race/configure/teams/update.php @@ -64,7 +64,7 @@ if ($item !== NULL) $app->view('template/header', [ 'title' => $title ]); - $app->view('pages/race/teamtable/edit/update', [ + $app->view('pages/race/configure/teams/update', [ "team" => $team, "title" => $title ]); @@ -77,7 +77,7 @@ $title = "Legg til lag"; $app->view('template/header', [ 'title' => $title ]); -$app->view('pages/race/teamtable/edit/update', [ +$app->view('pages/race/configure/teams/update', [ "team" => new Team, "title" => $title ]);