diff --git a/client/src/components/CenterPopup.vue b/client/src/components/CenterPopup.vue
new file mode 100644
index 0000000..ccc91f8
--- /dev/null
+++ b/client/src/components/CenterPopup.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
Opdater
+
x
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/components/NavBar.vue b/client/src/components/NavBar.vue
index c20e4f2..a3adf1a 100644
--- a/client/src/components/NavBar.vue
+++ b/client/src/components/NavBar.vue
@@ -52,8 +52,8 @@ export default {
TræningstimerTræningstimerSkema
- Centers
- Trainers
+ Trænere
+ CentreProfil
diff --git a/client/src/components/TrainerPopup.vue b/client/src/components/TrainerPopup.vue
new file mode 100644
index 0000000..c885843
--- /dev/null
+++ b/client/src/components/TrainerPopup.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
Opdater
+
x
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/interfaces/trainer.ts b/client/src/interfaces/trainer.ts
index 60fa483..80fd3b4 100644
--- a/client/src/interfaces/trainer.ts
+++ b/client/src/interfaces/trainer.ts
@@ -4,4 +4,8 @@ export interface Trainer {
last_name: string
center_id: number
center_name: string
+}
+
+export interface TrainerWithHourlyPrice extends Trainer {
+ hourly_price: number
}
\ No newline at end of file
diff --git a/client/src/router/index.ts b/client/src/router/index.ts
index dd285fc..958689a 100644
--- a/client/src/router/index.ts
+++ b/client/src/router/index.ts
@@ -48,6 +48,22 @@ const router = createRouter({
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/trainer/TrainerOrdersView.vue')
+ },
+ {
+ path: '/admin/center',
+ name: 'AdminCenters',
+ // route level code-splitting
+ // this generates a separate chunk (About.[hash].js) for this route
+ // which is lazy-loaded when the route is visited.
+ component: () => import('../views/admin/Centers.vue')
+ },
+ {
+ path: '/admin/trainer',
+ name: 'AdminTrainers',
+ // route level code-splitting
+ // this generates a separate chunk (About.[hash].js) for this route
+ // which is lazy-loaded when the route is visited.
+ component: () => import('../views/admin/Trainers.vue')
}
]
})
diff --git a/client/src/views/admin/Centers.vue b/client/src/views/admin/Centers.vue
new file mode 100644
index 0000000..d77c850
--- /dev/null
+++ b/client/src/views/admin/Centers.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
{{ center.name }}
+
{{ center.city }}, {{ center.zip_code }}
+
{{ center.address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/views/admin/Trainers.vue b/client/src/views/admin/Trainers.vue
new file mode 100644
index 0000000..0238ebb
--- /dev/null
+++ b/client/src/views/admin/Trainers.vue
@@ -0,0 +1,136 @@
+
+