From e5a1bfad0c9b3ab929a0456082ba9c1324c8f3ba Mon Sep 17 00:00:00 2001 From: smugg99 Date: Sat, 2 Nov 2024 22:34:03 +0100 Subject: [PATCH] added mobile view for schedule tables --- .../src/components/ScheduleTable.vue | 280 +++++++++++++----- .../src/components/pages/Division.vue | 40 ++- .../src/locales/en.js | 1 + .../src/locales/pl.js | 1 + 4 files changed, 242 insertions(+), 80 deletions(-) diff --git a/web/optivum-better-schedule-frontend/src/components/ScheduleTable.vue b/web/optivum-better-schedule-frontend/src/components/ScheduleTable.vue index 49cc0fe..db9759b 100644 --- a/web/optivum-better-schedule-frontend/src/components/ScheduleTable.vue +++ b/web/optivum-better-schedule-frontend/src/components/ScheduleTable.vue @@ -10,62 +10,121 @@ - - - - - {{ t('schedule.ordered_number') }} - {{ t('schedule.time_range') }} - - {{ day }} - - - - - - {{ - rowIndex + 1 }} - {{ timeRange }} - -
-
- {{ lesson.full_name }}  - - -  {{ lesson.teacher_designator }} - - - -  {{ lesson.room_designator }} - - - -  {{ lesson.division_designator }} - +
+ + + + + +
+ diff --git a/web/optivum-better-schedule-frontend/src/locales/en.js b/web/optivum-better-schedule-frontend/src/locales/en.js index d2fb537..f7079df 100644 --- a/web/optivum-better-schedule-frontend/src/locales/en.js +++ b/web/optivum-better-schedule-frontend/src/locales/en.js @@ -119,5 +119,6 @@ export default { schedule: { ordered_number: 'No.', time_range: 'Time', + lesson: 'Lesson', } }; \ No newline at end of file diff --git a/web/optivum-better-schedule-frontend/src/locales/pl.js b/web/optivum-better-schedule-frontend/src/locales/pl.js index 0311abf..3508360 100644 --- a/web/optivum-better-schedule-frontend/src/locales/pl.js +++ b/web/optivum-better-schedule-frontend/src/locales/pl.js @@ -119,5 +119,6 @@ export default { schedule: { ordered_number: 'Nr', time_range: 'Godzina', + lesson: 'Lekcja', } };