Skip to content

Conversation

@tatokis
Copy link
Contributor

@tatokis tatokis commented Oct 25, 2025

This PR contains improvements in regards to the user experience when it comes to attendance book creation.

More specifically:

  • The creation form now properly validates the required attendance field.
  • The required attendance field is pre-populated with a value that should be considered reasonable for most use cases: (2 classes/lectures per week, for 3 months, with two missed attendances allowed (243)-2).
  • The start and end dates are now pre-populated with values appropriate for the current semester.

These changes result in less friction when a professor creates a new attendance book.

In addition, some of the code has been cleaned up and a new Semester enum has been added.

MavChtz and others added 5 commits October 25, 2025 18:19
This patch merges new_attendance() and attendance_settings() into
one making the code more maintanable.

As a byproduct, the following are addressed:
* Removed checkrequired() from new_attendance() as it did nothing
* Improved HTML structure by fixing incosistent div elements and removing
  a stray fieldset
* Placeholders were introduced into the attendance book settings form
* Title is now carried over on an invalid POST from the attendance book
  create form

Co-authored-by: Tasos Sahanidis <tasos@tasossah.com>
Required attendances are now optional integers, greater or equal to 0.

Co-authored-by: Tasos Sahanidis <tasos@tasossah.com>
Co-authored-by: Tasos Sahanidis <tasos@tasossah.com>
Co-authored-by: Mavroudis Chatzilazaridis <mavchatz@protonmail.com>
A function to aid in calculating the current and upcoming semesters
has also been added. It provides information such as start/end dates
and the academic year.

Co-authored-by: Tasos Sahanidis <tasos@tasossah.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants