Require explicit attendance status selection before submit.
Do not prefill present for unsaved students, highlight pending rows, and show recorded counts on the attendance list.
This commit is contained in:
@@ -89,10 +89,18 @@
|
||||
|
||||
<Column field="attendanceStatus" header="وضعیت حضور">
|
||||
<template #body="{ data }">
|
||||
<Tag
|
||||
:value="getAttendanceStatus(data).label"
|
||||
:severity="getAttendanceStatus(data).severity"
|
||||
/>
|
||||
<div class="flex flex-column gap-1">
|
||||
<Tag
|
||||
:value="getAttendanceStatus(data).label"
|
||||
:severity="getAttendanceStatus(data).severity"
|
||||
/>
|
||||
<span
|
||||
v-if="data.attendanceTotalCount"
|
||||
class="text-xs text-muted"
|
||||
>
|
||||
{{ toPersianDigits(data.attendanceRecordedCount || 0) }} از {{ toPersianDigits(data.attendanceTotalCount) }} دانشجو
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
</Column>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user