Aug 6 - Update enrollment page, notify admin user
This commit is contained in:
@@ -243,9 +243,10 @@ def submit():
|
||||
logger.info('ENROLLMENT | submitted | id=%s project=%r people=%d ip=%s',
|
||||
record['id'], project_name, len(named), request.remote_addr)
|
||||
|
||||
# Confirmation to the requester. Fired AFTER the save and fully guarded —
|
||||
# a mail problem must never cost the customer their submission.
|
||||
mailer.send_confirmation(record, base_url=request.host_url)
|
||||
# Both emails fire AFTER the save and are fully guarded — a mail problem
|
||||
# must never cost the customer their submission.
|
||||
mailer.send_confirmation(record, base_url=request.host_url) # requester
|
||||
mailer.send_admin_notification(record, base_url=request.host_url) # JQC admins
|
||||
|
||||
return render_template('enrollment/submitted.html', reference=record['id'],
|
||||
email=requester_email)
|
||||
|
||||
Reference in New Issue
Block a user