From e4434acc949a3e40bd7e897cabaee5c5e15683f8 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 27 Oct 2021 18:51:59 +0200 Subject: [PATCH] Client - add Sport administration --- .../components/Administration/AdminMenu.vue | 6 +- .../components/Administration/AdminSports.vue | 171 ++++++++++++++++++ .../src/components/Workouts/WorkoutsList.vue | 135 +++----------- .../src/locales/en/administration.json | 10 + fittrackee_client/src/locales/en/buttons.json | 2 + .../src/locales/fr/administration.json | 10 + fittrackee_client/src/locales/fr/buttons.json | 2 + fittrackee_client/src/router/index.ts | 6 + fittrackee_client/src/scss/base.scss | 80 ++++++++ .../src/store/modules/sports/actions.ts | 17 ++ .../src/store/modules/sports/enums.ts | 1 + .../src/store/modules/sports/types.ts | 6 +- fittrackee_client/src/types/sports.ts | 6 + fittrackee_client/src/views/AdminView.vue | 3 + 14 files changed, 342 insertions(+), 113 deletions(-) create mode 100644 fittrackee_client/src/components/Administration/AdminSports.vue diff --git a/fittrackee_client/src/components/Administration/AdminMenu.vue b/fittrackee_client/src/components/Administration/AdminMenu.vue index 7fc16049..45d92ef8 100644 --- a/fittrackee_client/src/components/Administration/AdminMenu.vue +++ b/fittrackee_client/src/components/Administration/AdminMenu.vue @@ -23,7 +23,11 @@ }} -
{{ capitalize($t('workouts.SPORT', 0)) }}
+
+ + {{ capitalize($t('workouts.SPORT', 0)) }} + +
{{ $t('admin.ENABLE_DISABLE_SPORTS') }}
diff --git a/fittrackee_client/src/components/Administration/AdminSports.vue b/fittrackee_client/src/components/Administration/AdminSports.vue new file mode 100644 index 00000000..dc665741 --- /dev/null +++ b/fittrackee_client/src/components/Administration/AdminSports.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/fittrackee_client/src/components/Workouts/WorkoutsList.vue b/fittrackee_client/src/components/Workouts/WorkoutsList.vue index 7b030299..921f1b86 100644 --- a/fittrackee_client/src/components/Workouts/WorkoutsList.vue +++ b/fittrackee_client/src/components/Workouts/WorkoutsList.vue @@ -1,7 +1,7 @@ @@ -64,6 +65,8 @@ #admin { .admin-card { width: 100%; + margin-bottom: 55px; + ::v-deep(.card) { .admin-form { display: flex;