From 3490b1a24d5d40f66b978a0920bb6f3b6ab9b729 Mon Sep 17 00:00:00 2001 From: Krzysztof Rewak Date: Mon, 7 Oct 2024 20:04:00 +0200 Subject: [PATCH] - tweaks --- .../Dashboard/StudentController.php | 1 + .../Dashboard/CourseSemester/Grade/Import.vue | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Dashboard/StudentController.php b/app/Http/Controllers/Dashboard/StudentController.php index 99ec6aa..3118cc8 100644 --- a/app/Http/Controllers/Dashboard/StudentController.php +++ b/app/Http/Controllers/Dashboard/StudentController.php @@ -26,6 +26,7 @@ public function index(Request $request): Response ->orWhereLikeUnaccentInsensitive("surname", $searchText) ->orWhere("index_number", "LIKE", "%$searchText%"), ) + ->orderBy("surname") ->paginate() ->withQueryString(); diff --git a/resources/js/Pages/Dashboard/CourseSemester/Grade/Import.vue b/resources/js/Pages/Dashboard/CourseSemester/Grade/Import.vue index 33c88da..63812d1 100644 --- a/resources/js/Pages/Dashboard/CourseSemester/Grade/Import.vue +++ b/resources/js/Pages/Dashboard/CourseSemester/Grade/Import.vue @@ -11,6 +11,7 @@ import TableWrapper from '@/Shared/Components/Table/Public/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/Public/TableRow.vue' import TableCell from '@/Shared/Components/Table/Public/TableCell.vue' import GradeCell from '@/Shared/Components/GradeCell.vue' +import TableHeader from "@/Shared/Components/Table/TableHeader.vue"; const props = defineProps({ course: Object, @@ -72,6 +73,17 @@ function prepareStudentsList() { Lista ocen +