Skip to content

Commit

Permalink
Add email with panel confirmation link
Browse files Browse the repository at this point in the history
Requested via Slack.
  • Loading branch information
kitsuta committed Jul 20, 2024
1 parent 729984c commit 68d515c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion magwest/automated_emails.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
from datetime import timedelta

from uber.automated_emails import AutomatedEmailFixture, MarketplaceEmailFixture, StopsEmailFixture
from uber.automated_emails import AutomatedEmailFixture, MarketplaceEmailFixture, PanelAppEmailFixture
from uber.config import c
from uber.models import Attendee, AutomatedEmail
from uber.utils import before, days_before, days_after


PanelAppEmailFixture(
f'Approved - MAGWest 2024 Panel Application - Please confirm your attendance!',
'panels/panel_app_confirm.txt',
lambda app: app.status == c.ACCEPTED and not app.confirmed,
needs_approval=True,
ident='panel_app_confirm'
)


MarketplaceEmailFixture(
f'Waitlisted - {c.EVENT_NAME_AND_YEAR}',
'dealers/waitlisted.txt',
Expand Down
3 changes: 3 additions & 0 deletions magwest/templates/emails/panels/panel_app_confirm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Congratulations again for your panel submission ({{ app.name }}) being accepted for {{ c.EVENT_NAME_AND_YEAR }}!

You still haven't confirmed that you can host the panel your submitted. You may do so by clicking the following link: {{ c.URL_BASE }}/panels/confirm_panel?id={{ app.id }}

0 comments on commit 68d515c

Please sign in to comment.