Aug 6 - Update enrollment page, correct confirmation email

This commit is contained in:
2026-08-06 12:24:08 -04:00
parent 548e262b2a
commit 264eeabd70
4 changed files with 16 additions and 6 deletions
+4 -4
View File
@@ -24,7 +24,7 @@ from flask import current_app, render_template
logger = logging.getLogger(__name__)
def _text_body(record, people):
def _text_body(record, people, corrections_email):
"""Plain-text alternative — some recipients see only this."""
lines = [
f'Hi {record.get("request_by") or "there"},',
@@ -45,8 +45,8 @@ def _text_body(record, people):
'Our team will create these accounts. Each person will receive their own '
'email invitation with sign-in instructions.',
'',
'If anything above is wrong, simply reply to this email and we will '
'correct it.',
f'If anything above is wrong, simply send an email to '
f'{corrections_email}, and we will correct it.',
'',
'JQC by L.T Services, Inc',
]
@@ -78,7 +78,7 @@ def send_confirmation(record, base_url=None):
subject = f'[JQC] Enrollment received — {record.get("project_name")}',
sender = branded_sender(effective_base),
recipients = [email],
body = _text_body(record, people),
body = _text_body(record, people, schema.CORRECTIONS_EMAIL),
html = render_template('enrollment/email_confirmation.html',
record=record, people=people,
schema=schema),