Skip to content

Commit

Permalink
- tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak committed Oct 7, 2024
1 parent 626bc10 commit 3490b1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Dashboard/StudentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function index(Request $request): Response
->orWhereLikeUnaccentInsensitive("surname", $searchText)
->orWhere("index_number", "LIKE", "%$searchText%"),
)
->orderBy("surname")
->paginate()
->withQueryString();

Expand Down
18 changes: 14 additions & 4 deletions resources/js/Pages/Dashboard/CourseSemester/Grade/Import.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -72,6 +73,17 @@ function prepareStudentsList() {
Lista ocen
</FormLabel>
<TableWrapper class="mt-2">
<template #header>
<TableHeader>
Numer indeksu
</TableHeader>
<TableHeader>
Obecna ocena
</TableHeader>
<TableHeader>
Proponowana
</TableHeader>
</template>
<template #body>
<TableRow v-for="data in gradesForm.grades" :key="data.student.id">
<TableCell class="h-[70px] w-1 cursor-pointer flex-row border-2">
Expand All @@ -82,10 +94,8 @@ function prepareStudentsList() {
({{ data.student.indexNumber }})
</div>
</TableCell>
<GradeCell :grade="data" :grade-column="data.column" :student="data.student" class="cursor-pointer border-2" @create-grade="createGrade" @update-grade="updateGrade" />
<TableCell class="h-[70px] w-1 cursor-pointer flex-row border-2">
<span v-if="data.imported">zaimportowane</span>
</TableCell>
<GradeCell :grade="data" :grade-column="data.column" :student="data.student" class="cursor-pointer border-2"/>
<GradeCell :grade="data" :grade-column="data.column" :student="data.student" class="cursor-pointer border-2"/>
</TableRow>
</template>
</TableWrapper>
Expand Down

0 comments on commit 3490b1a

Please sign in to comment.