From 0bb117014c8f677b50b98ceadecc38c0be2310cc Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Fri, 14 Jun 2024 09:19:43 -0400 Subject: [PATCH] Add temporarily disabling of emergency procedures We usually don't have these procedures ready when we launch the volunteer checklist, so we now can disable the link using config. --- uber/configspec.ini | 10 ++++++++-- uber/templates/staffing/emergency_procedures_item.html | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) 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/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 %}