From d4003d2ec256cebc4a178d6cd0932e99c2aa0004 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Tue, 4 Jun 2024 14:50:25 -0400 Subject: [PATCH] Update shift schedule email Requested via Slack! --- .../templates/emails/shifts/schedule.html | 67 +++++++++++++++++++ .../staffing/printable_schedule.html | 50 ++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 magstock/templates/emails/shifts/schedule.html create mode 100644 magstock/templates/staffing/printable_schedule.html diff --git a/magstock/templates/emails/shifts/schedule.html b/magstock/templates/emails/shifts/schedule.html new file mode 100644 index 0000000..b514afe --- /dev/null +++ b/magstock/templates/emails/shifts/schedule.html @@ -0,0 +1,67 @@ + + + + +{{ attendee.first_name }}, +

+ +{% if attendee.badge_type == c.STAFF_BADGE %} + Thanks again for Staffing at {{ c.EVENT_NAME }}! +{% elif c.VOLUNTEER_RIBBON in attendee.ribbon_ints %} + Thanks again for Volunteering at {{ c.EVENT_NAME }}! +{% endif %} + +{% if attendee.badge_type == c.STAFF_BADGE and c.SHIRTS_PER_STAFFER > 0 %} +

+ Please remember to also pick up your + {% if c.SHIRTS_PER_STAFFER > 1 %} + {{ c.SHIRTS_PER_STAFFER }} + {% endif %} + {{ c.EVENT_NAME }} + {% if c.SHIRTS_PER_STAFFER > 0 %} + Staff Shirt{{ c.SHIRTS_PER_STAFFER|pluralize }} + {% else %} + Shirt + {% endif %} + from the {{ c.EVENT_NAME }} MERCH Booth when you get to {{ c.EVENT_NAME }}. + {% if c.SHIRTS_PER_STAFFER > 0 %} + As a reminder, there is an expectation that you will wear + {% if c.SHIRTS_PER_STAFFER > 1 %} + one of these shirts + {% else %} + this shirt + {% endif %} + while working your scheduled shifts during {{ c.EVENT_NAME }}, + (Thurs-Sunday, not during load-in or load-out). When not on shift, you + should wear a different shirt, so you can enjoy {{ c.EVENT_NAME }} with + everyone else. + {% endif %} + + {% if c.SHIRTS_PER_STAFFER > 0 and c.STAFF_EVENT_SHIRT_OPTS %} +

+ You may choose to receive a {{ c.EVENT_NAME }} swag shirt instead of + {% if c.SHIRTS_PER_STAFFER > 1 %}one of {% endif %}your staff shirt{{ c.SHIRTS_PER_STAFFER|pluralize }}. + This is the same shirt that attendees can buy and is provided as a perk for staffing. + {% endif %} +{% endif %} + +{% if attendee.gets_any_kind_of_shirt %} +

+ After you've picked up your wristband, you can pick up your shirt and other + swag at the {{ c.EVENT_NAME }} merch booth. +{% endif %} + +{% if attendee.takes_shifts and attendee.shifts %} +

+ If you'd like, you can print this out for your own reference. If your + department head isn't able to mark off your shift electronically, you + can have them sign this and bring it to STOPS so we can. +{% endif %} + +

+{% include "staffing/printable_schedule.html" %} + +
{{ c.STOPS_EMAIL_SIGNATURE|linebreaksbr }} + + + diff --git a/magstock/templates/staffing/printable_schedule.html b/magstock/templates/staffing/printable_schedule.html new file mode 100644 index 0000000..ae3211c --- /dev/null +++ b/magstock/templates/staffing/printable_schedule.html @@ -0,0 +1,50 @@ +{% if attendee.takes_shifts %} + You are signed up for {{ attendee.weighted_hours }} hours (after weighting) + +

+ After working each shift, make sure you get a department head to initial under the Worked column below. + If your shifts are not marked as worked, you won't + {% if attendee.paid != c.NEED_NOT_PAY %} + get your wristband refunded, plus you won't + {% endif %} + get a comped wristband next year. +{% endif %} + +{% if c.HOURS_FOR_FOOD %}{% include "staffing/food_info.html" %}{% endif %} + +{% if attendee.shifts %} + You should report to a Department Head for each department you're working before the start of your first shift: +
+ {{ attendee.must_contact }} +
+ +
+ + + + + + + + + + {% for shift in attendee.shifts|sortBy('job.start_time') %} + + + + + + + + + {% if shift.job.description %} + + + + {% endif %} + {% endfor %} +
JobDeptStartHoursWeightWorked
{{ shift.job.name }}{{ shift.job.department_name }}{{ shift.job.start_time|datetime_local("%A %-I:%M %p") }}{% if shift.job.is_setup or shift.job.is_teardown %}__________ (up to {{ (shift.job.duration / 60)|int }} hours) + {% else %}{{ (shift.job.duration / 60)|int }}{% endif %}(x{{ shift.job.weight }})__________
{{ shift.job.description }}

+{% elif attendee.takes_shifts %} +

You have not signed up for any shifts.

+{% endif %}