diff --git a/ui/src/pages/TrainingReport.vue b/ui/src/pages/TrainingReport.vue index bad58a5..79ed7da 100644 --- a/ui/src/pages/TrainingReport.vue +++ b/ui/src/pages/TrainingReport.vue @@ -1,7 +1,7 @@ - + - + Training Reports - + New Training Report - + - + Search @@ -172,7 +241,24 @@ const expanded = ref(null); - + + + + + {{ report.course_name.length > 35 ? report.course_shortname : report.course_name }} + + {{ formatDate(report.date) }} + + Posted by: + + Unknown User + + + + + @@ -187,12 +273,12 @@ const expanded = ref(null); + @click="openTrainingReport(report.event_id)"> {{ report.course_name.length > 30 ? report.course_shortname : report.course_name }} {{ report.date.split('T')[0] }} - + Unknown User - + Training Report Details - + + Back + + - + - + {{ focusedTrainingReport.course_name }} - {{ focusedTrainingReport.event_date.split('T')[0] }} - Created by: + {{ formatDate(focusedTrainingReport.event_date) }} + Created by: - {{ focusedTrainingReport.created_by_name === null ? "Unknown User" : - focusedTrainingReport.created_by_name - }} - + Unknown User + @@ -452,18 +544,31 @@ const expanded = ref(null); - + - + New Training Report - + + Back + + - - { router.push(`/trainingReport/${newID}`); loadTrainingReports() }"> + + { + if (isMobile) { + await viewTrainingReport(newID); + mobilePanel = sidePanelState.view; + } else { + router.push(`/trainingReport/${newID}`); + } + loadTrainingReports() + }">
Training Reports
+ {{ report.course_name.length > 35 ? report.course_shortname : report.course_name }} +
{{ formatDate(report.date) }}
Training Report Details
{{ focusedTrainingReport.course_name }}
{{ focusedTrainingReport.event_date.split('T')[0] }}
Created by: +
{{ formatDate(focusedTrainingReport.event_date) }}
{{ focusedTrainingReport.created_by_name === null ? "Unknown User" : - focusedTrainingReport.created_by_name - }}
New Training Report