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 @@
{{ badge_extras.amount_extra.label.text }}
-
{{ attendee.amount_extra_label }}{% if c.AVAILABLE_MERCH_TIERS and attendee.amount_extra < c.AVAILABLE_MERCH_TIERS[-1] %}{{ macros.upgrade_button('amount-extra', text="Purchase Merch" if attendee.amount_extra == 0 else "Upgrade") }}{% endif %}
+
{{ attendee.amount_extra_label or "None" }}{% if c.AVAILABLE_MERCH_TIERS and attendee.amount_extra < c.AVAILABLE_MERCH_TIERS[-1] %}{{ macros.upgrade_button('amount-extra', text="Purchase Merch" if attendee.amount_extra == 0 else "Upgrade") }}{% endif %}
{% endif %} diff --git a/uber/templates/staffing/emergency_procedures_item.html b/uber/templates/staffing/emergency_procedures_item.html index 7e534255e..0cc4e4077 100644 --- a/uber/templates/staffing/emergency_procedures_item.html +++ b/uber/templates/staffing/emergency_procedures_item.html @@ -3,12 +3,12 @@
  • {{ macros.checklist_image(attendee.reviewed_emergency_procedures) }} {% if not attendee.reviewed_emergency_procedures %} - Please review + Please review our {% else %} You have acknowledged that you reviewed our {% endif %} - {% if not attendee.placeholder and (attendee.agreed_to_volunteer_agreement or not c.VOLUNTEER_AGREEMENT_ENABLED) %}Emergency Procedures{% else %}Emergency Procedures{% endif %} + {% if c.EMERGENCY_PROCEDURES_READY and not attendee.placeholder and (attendee.agreed_to_volunteer_agreement or not c.VOLUNTEER_AGREEMENT_ENABLED) %}Emergency Procedures{% else %}Emergency Procedures{% endif %} {% if not attendee.reviewed_emergency_procedures %} and acknowledge that you have done so{% endif %}. - (Deadline: {{ c.EMERGENCY_PROCEDURES_DEADLINE }}) + {% if c.EMERGENCY_PROCEDURES_READY %}(Deadline: {{ c.EMERGENCY_PROCEDURES_DEADLINE }}){% else %}(Coming Soon!){% endif %}
  • {% endif %}