learning-unlimited / ESP-Website

A website to help manage the logistics of large, short-term educational programs
82 stars 57 forks source link

Fix availability form for weird groupings #3620

Closed willgearty closed 1 year ago

willgearty commented 1 year ago

This fixes the availability form interface for various timeslot grouping edge cases, such as:

  1. The "Availability group timeslots" global tag is set to False (so all timeslots are in a single group)
  2. A group of timeslots spans multiple days

While I was at it, I also made some minor visual changes to give the availability form a bit more breathing room: image

I also updated the resources page to have the same formatting (so now admins will know roughly what the groupings will look like to teachers): image

Fixes https://github.com/learning-unlimited/ESP-Website/issues/3617. Fixes https://github.com/learning-unlimited/ESP-Website/issues/246.

willgearty commented 1 year ago

This now also supports custom timeslot groups, which you can specify in the new/edit timeslot form: image

And here is what they look like below that: image

Fixes https://github.com/learning-unlimited/ESP-Website/issues/246.

willgearty commented 1 year ago

Thanks @kkbrum! I've made the suggested changes!