GibbonEdu / core

Gibbon is a flexible, open source school management platform designed to make life better for teachers, students, parents and leaders.
https://gibbonedu.org
GNU General Public License v3.0
462 stars 300 forks source link

Attendance: add the option to take future attendance for ad hoc groups #1699

Closed SKuipers closed 1 year ago

SKuipers commented 1 year ago

Improves the Set Future Absence tool to enable using ad hoc groups for attendance, and setting partial class attendance for a group of students. When selecting a group of students for a partial absence, a time range is entered, and then a grid of student photos will be displayed with the classes for each student selected for that time range. Prior absences will be listed but disabled so they cannot be checked.

Adds a disabled method to the Checkbox input to enable setting an array of checkbox value-keys that are disabled in the list. This enabled displaying specific values that are not selectable in a single checkbox list.

I've tidied up the code along the way, but this has certainly added some complexity to the future absence scripts. Overall, worth the trade-off given the usability it adds.

Motivation and Context Schools often have groups of students going offsite for the day or leaving early in the school day. The additional Future Absence tools let teachers enter this attendance data into the system so that it's visible to other form group and class teachers when they go to take attendance on the day.

How Has This Been Tested? Locally.

Screenshots Screenshot 2022-11-04 at 09-14-06 TEST - Gibbon - Attendance

Screenshot 2022-11-04 at 09-14-39 TEST - Gibbon - Attendance