diff --git a/uber/configspec.ini b/uber/configspec.ini index 3501006b3..53579f14a 100644 --- a/uber/configspec.ini +++ b/uber/configspec.ini @@ -360,7 +360,8 @@ shiftless_depts = string_list(default=list()) # signed up for in order to receive a specific perk. If any of these is set to 0, # that perk is turned off for the event. -# Volunteers with Staff badges always get a staff shirt as long as this is more than 0 +# If shirts_per_staffer is set to 0 and this is not set to 0, staff get the same shirt +# that volunteers get. Otherwise, they get separate staff shirts with separate sizes. hours_for_shirt = integer(default=6) # Access to staff suite and/or tea room @@ -426,7 +427,7 @@ out_of_shirts = boolean(default=False) # This is the number of staff shirts that each staffer gets. # You can populate [[staff_event_shirt]] to allow staff to choose to -# replace 1 or more of their staff shirts with event shirts +# replace 1 or more of their staff shirts with event shirts. # # Staff shirts are for wearing on-shift. Use hours_for_shirt # to grant staff and volunteers an event shirt instead. @@ -489,6 +490,11 @@ volunteer_agreement_enabled = boolean(default=False) # Much like the volunteer agreement, but for an emergency procedures document. emergency_procedures_enabled = boolean(default=False) +# Emergency procedures documents might not always be ready when the volunteer +# checklist opens. When this is turned off, the link is removed from the step +# and the deadline is replaced with "Coming Soon!" +emergency_procedures_ready = boolean(default=False) + # This controls whether we ask volunteers to provide a name for a credits roll. volunteer_credits_roll = boolean(default=False) diff --git a/uber/models/attendee.py b/uber/models/attendee.py index e941350dc..6ff13f880 100644 --- a/uber/models/attendee.py +++ b/uber/models/attendee.py @@ -1439,12 +1439,12 @@ def paid_for_a_shirt(self): @property def num_free_event_shirts(self): """ - If someone is staff-shirt-eligible, we use the number of event shirts they have selected (if any) - Volunteers also get a free event shirt. + If someone is staff-shirt-eligible, we use the number of event shirts they have selected (if any). + Volunteers also get a free event shirt. Staff get an event shirt if staff shirts are turned off for the event. Returns: Integer representing the number of free event shirts this attendee should get. - """ - return max(0, self.num_event_shirts) if self.gets_staff_shirt else self.volunteer_event_shirt_eligible + return max(0, self.num_event_shirts) if self.gets_staff_shirt else bool( + self.volunteer_event_shirt_eligible or (self.badge_type == c.STAFF_BADGE and c.HOURS_FOR_SHIRT)) @property def volunteer_event_shirt_eligible(self): diff --git a/uber/templates/forms/attendee/badge_extras.html b/uber/templates/forms/attendee/badge_extras.html index 3d1c650a0..12950b89a 100644 --- a/uber/templates/forms/attendee/badge_extras.html +++ b/uber/templates/forms/attendee/badge_extras.html @@ -57,7 +57,7 @@