diff --git a/ui/src/components/tooltip/Tooltip.vue b/ui/src/components/tooltip/Tooltip.vue new file mode 100644 index 0000000..1e46eec --- /dev/null +++ b/ui/src/components/tooltip/Tooltip.vue @@ -0,0 +1,20 @@ + + + + + + + {{ message }} + + + \ No newline at end of file diff --git a/ui/src/components/trainingReport/trainingReportForm.vue b/ui/src/components/trainingReport/trainingReportForm.vue index b68aeb0..4eea9b3 100644 --- a/ui/src/components/trainingReport/trainingReportForm.vue +++ b/ui/src/components/trainingReport/trainingReportForm.vue @@ -25,6 +25,7 @@ import Popover from "@/components/ui/popover/Popover.vue"; import PopoverTrigger from "@/components/ui/popover/PopoverTrigger.vue"; import PopoverContent from "@/components/ui/popover/PopoverContent.vue"; import Combobox from '../ui/combobox/Combobox.vue' +import Tooltip from '../tooltip/Tooltip.vue' const { handleSubmit, resetForm, errors, values, setFieldValue } = useForm({ @@ -50,7 +51,9 @@ watch(() => values.course_id, (newCourseId, oldCourseId) => { if (!oldCourseId) return; values.attendees.forEach((a, index) => { + // @ts-ignore setFieldValue(`attendees[${index}].passed_bookwork`, false); + // @ts-ignore setFieldValue(`attendees[${index}].passed_qual`, false); }); }); @@ -326,22 +329,13 @@ const filteredMembers = computed(() => { - - + - - - This course does not have bookwork - - + @@ -351,20 +345,12 @@ const filteredMembers = computed(() => { - + - - - This course does not have a qualification - - + diff --git a/ui/src/pages/TrainingReport.vue b/ui/src/pages/TrainingReport.vue index d321ef3..a575b57 100644 --- a/ui/src/pages/TrainingReport.vue +++ b/ui/src/pages/TrainingReport.vue @@ -10,7 +10,7 @@ import { TableHeader, TableRow, } from '@/components/ui/table' -import { ArrowUpDown, Funnel, Plus, Search, X } from 'lucide-vue-next'; +import { ArrowUpDown, ChevronDown, ChevronUp, Funnel, Plus, Search, X } from 'lucide-vue-next'; import Button from '@/components/ui/button/Button.vue'; import TrainingReportForm from '@/components/trainingReport/trainingReportForm.vue'; import Checkbox from '@/components/ui/checkbox/Checkbox.vue'; @@ -32,6 +32,7 @@ import { PaginationNext, PaginationPrevious, } from '@/components/ui/pagination' +import Tooltip from '@/components/tooltip/Tooltip.vue'; enum sidePanelState { view, create, closed }; @@ -53,6 +54,7 @@ watch(() => route.params.id, async (newID) => { return; } TRLoaded.value = false; + expanded.value = null; viewTrainingReport(Number(route.params.id)); }) @@ -126,6 +128,8 @@ function setPage(pagenum: number) { pageNum.value = pagenum; loadTrainingReports(); } + +const expanded = ref(null); @@ -197,8 +201,8 @@ function setPage(pagenum: number) { - + @@ -214,7 +218,7 @@ function setPage(pagenum: number) { - + Per page: Trainers - + Name Role - Remarks + Remarks + - - - - {{ person.attendee_name }} + + + + + {{ person.attendee_name }} + + {{ person.role.name }} + + {{ person.remarks == "" ? + '--' + : person.remarks }} + + + + + + + + + + + + + Remarks + + + {{ person.remarks }} + + + None provided + + - {{ person.role.name }} - - {{ person.remarks == "" ? - '--' - : person.remarks }} Trainees - + Name - Bookwork - Qual - Remarks + Bookwork + Qual + Remarks + - - - - {{ person.attendee_name }} + + + + + {{ person.attendee_name }} + + + + + + + + + + + {{ person.remarks == "" ? + '--' + : person.remarks }} + + + + + + + + + + + + + Remarks + + + {{ person.remarks }} + + + None provided + + - - - - - - {{ person.remarks == "" ? - '--' - : person.remarks }} - No Shows - + + No Shows + + + Name - - - - Remarks + + + Remarks + - - - - {{ person.attendee_name }} + + + + + + + + {{ person.attendee_name }} + + + + + + + {{ person.remarks || '--' }} + + + + + + + + + + + + Remarks + + + + {{ person.remarks }} + + + + None provided + + - - - - - {{ person.remarks == "" ? - '--' - : person.remarks }} + Remarks @@ -368,33 +463,3 @@ function setPage(pagenum: number) { - - \ No newline at end of file
Per page:
{{ person.attendee_name }}
{{ person.role.name }}
+ {{ person.remarks == "" ? + '--' + : person.remarks }}
+ Remarks +
+ {{ person.remarks }} +
+ None provided +
- {{ person.remarks == "" ? - '--' - : person.remarks }}
+ {{ person.remarks || '--' }} +