-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dealer waitlist/decline emails and guest RI step
Adds automatic emails for waitlisted and declined dealers, plus updates the approved email text, requested via email. Also adds the "Rock Island" version of the merch step for the guest checklist, requested via Slack.
- Loading branch information
Showing
7 changed files
with
103 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from uber.models import Attendee, AutomatedEmail | ||
from uber.automated_emails import StopsEmailFixture, AutomatedEmailFixture | ||
from uber.automated_emails import StopsEmailFixture, AutomatedEmailFixture, MarketplaceEmailFixture | ||
from uber.config import c | ||
from uber.utils import before, days_after, days_before, DeptChecklistConf | ||
|
||
|
@@ -71,9 +71,24 @@ def __init__(self, event): | |
Attendee, 'Important MAGFest PC Gaming Room Information! *PLEASE READ*', 'lan_room.html', | ||
lambda a: c.LAN in a.interests_ints, | ||
ident='magprime_important_lan_room_info', | ||
needs_approval=True, | ||
sender='MAGFest LAN <[email protected]>') | ||
|
||
MarketplaceEmailFixture( | ||
'Your {} {} has been waitlisted'.format(c.EVENT_NAME, c.DEALER_APP_TERM.capitalize()), | ||
'dealers/waitlisted.txt', | ||
lambda g: g.status == c.WAITLISTED, | ||
# query=Group.status == c.WAITLISTED, | ||
needs_approval=True, | ||
ident='dealer_reg_waitlisted') | ||
|
||
MarketplaceEmailFixture( | ||
'Your {} {} has been decline'.format(c.EVENT_NAME, c.DEALER_APP_TERM.capitalize()), | ||
'dealers/declined.txt', | ||
lambda g: g.status == c.DECLINED, | ||
# query=Group.status == c.DECLINED, | ||
needs_approval=True, | ||
ident='dealer_reg_declined') | ||
|
||
""" | ||
AutomatedEmailFixture( | ||
Attendee, 'MAGFest Tech Ops volunteering', 'techops.txt', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Hello {{ group.leader.full_name }}, | ||
|
||
Thank you for your interest in MAGFest Marketplace. Unfortunately, this year your application for "{{ group.name }}" is being declined. We hope you have a good rest of your day. | ||
|
||
~ Marketplace Staff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Hello {{ group.leader.full_name }}, | ||
|
||
Thank you for your interest in MAGFest Marketplace. Unfortunately, due to the large number of applications this year your application for "{{ group.name }}" is being waitlisted. You will be notified if a table becomes available. If you are able to take a last minute (and we mean very last minute) table, please let us know by emailing us at [email protected]. We hope you try applying again in the future. Have a great rest of your day! | ||
|
||
~ Marketplace Staff |
50 changes: 50 additions & 0 deletions
50
magprime/templates/guest_checklist/guest_merch_deadline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% extends "guest_checklist/merch_deadline.html" %} | ||
|
||
{%- set HAS_ROCK_ISLAND = c.ROCK_ISLAND in c.GUEST_MERCHS and guest.group_type in c.ROCK_ISLAND_GROUPS -%} | ||
|
||
{% block deadline_text %} | ||
{% if guest.merch_status %} | ||
You have already indicated your merchandise preferences, but you may update them using the link above. | ||
{% else %} | ||
Use the link above to provide details on any merchandise you are bringing to | ||
sell{% if HAS_ROCK_ISLAND %} in 'Rock Island', our volunteer-run merch booth{% endif %}. | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block form_desc %} | ||
<p>MAGFest will provide access to our Rock Island Merch Department during the event.</p> | ||
|
||
<p> | ||
<a href="../static/RockIsland.pdf"> | ||
Click here for more info about our Rock Island service! | ||
</a> | ||
</p> | ||
{% endblock %} | ||
|
||
{% block form_extra %} | ||
{{ super() }} | ||
|
||
<div class="form-group" id="confirm-ri-faq"> | ||
<div class="col-sm-9 col-sm-offset-3 checkbox"> | ||
{{ macros.toggle_checkbox( | ||
'#save-merch-button', | ||
'I acknowledge that I have read & understood the <a href="../static/RockIsland.pdf">Rock Island FAQ</a>, including the hours and policies.'|safe, | ||
suffix='_agreed_ri_faq', | ||
mode='#save-merch-button', | ||
hide_on_checked=False, | ||
checked=agreed_to_ri_faq) }} | ||
</div> | ||
</div> | ||
|
||
<script> | ||
var showOrRIFaq = function() { | ||
setVisible('#confirm-ri-faq', $.val('selling_merch') === {{ c.ROCK_ISLAND }}); | ||
$('#save-merch-button').prop('disabled', $.val('selling_merch') === {{ c.ROCK_ISLAND }} && !$('#toggle_visibility_agreed_ri_faq').prop('checked')); | ||
}; | ||
$(function () { | ||
$("[name='selling_merch'] option[value='{{ c.OWN_TABLE }}']").remove(); | ||
showOrRIFaq(); | ||
$.field('selling_merch').on('change', showOrRIFaq); | ||
}); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters