Skip to content

Commit

Permalink
Update shift schedule email
Browse files Browse the repository at this point in the history
Requested via Slack!
  • Loading branch information
kitsuta committed Jun 4, 2024
1 parent 6b4876b commit d4003d2
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 0 deletions.
67 changes: 67 additions & 0 deletions magstock/templates/emails/shifts/schedule.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<html>
<head></head>
<body>

{{ attendee.first_name }},
<br><br>

{% 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 %}
<br><br>
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 %}
<br><br>
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 %}
<br><br>
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 %}
<br><br>
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 %}

<br><br>
{% include "staffing/printable_schedule.html" %}

<br> {{ c.STOPS_EMAIL_SIGNATURE|linebreaksbr }}

</body>
</html>
50 changes: 50 additions & 0 deletions magstock/templates/staffing/printable_schedule.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% if attendee.takes_shifts %}
You are signed up for {{ attendee.weighted_hours }} hours (after weighting)

<br/> <br/>
After working each shift, make sure you get a department head to initial under the <b>Worked</b> 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 %}
<i>You should report to a Department Head for each department you're working before the start of your first shift:</i>
<div style="margin-left:5% ; font-weight:bold">
{{ attendee.must_contact }}
</div>

<br/>
<table width="95%" align="center">
<tr style="font-weight:bold">
<td>Job</td>
<td>Dept</td>
<td>Start</td>
<td>Hours</td>
<td>Weight</td>
<td>Worked</td>
</tr>
{% for shift in attendee.shifts|sortBy('job.start_time') %}
<tr>
<td>{{ shift.job.name }}</td>
<td>{{ shift.job.department_name }}</td>
<td>{{ shift.job.start_time|datetime_local("%A %-I:%M %p") }}</td>
<td>{% 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 %}</td>
<td>(x{{ shift.job.weight }})</td>
<td>__________</td>
</tr>
{% if shift.job.description %}
<tr>
<td colspan="5" align="center" valign="top" style="padding-top:0px"><i>{{ shift.job.description }}</i><br/><br/></td>
</tr>
{% endif %}
{% endfor %}
</table>
{% elif attendee.takes_shifts %}
<h3>You have not signed up for any shifts.</h3>
{% endif %}

0 comments on commit d4003d2

Please sign in to comment.