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
]);