From dd01d84a2f247224c310f3ac6689dd19e1a32633 Mon Sep 17 00:00:00 2001 From: Jake Rosenberg Date: Mon, 16 Sep 2024 16:00:10 -0500 Subject: [PATCH] Update form confirmation email and show requested tour info --- apps/tup-cms/src/apps/portal/apps.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/tup-cms/src/apps/portal/apps.py b/apps/tup-cms/src/apps/portal/apps.py index ee5921fba..6ec38d03b 100644 --- a/apps/tup-cms/src/apps/portal/apps.py +++ b/apps/tup-cms/src/apps/portal/apps.py @@ -44,6 +44,13 @@ def submit_ticket(form_data): def send_confirmation_email(form_name, form_data): + + tour_receipt = "" + if form_name == "Tour Request Form": + tour_receipt = "

A copy of your tour request is provided below for your records:

\n" + for key in form_data: + tour_receipt += f"

{key}: {form_data[key]}

\n" + email_body = f"""

Greetings,

@@ -51,11 +58,12 @@ def send_confirmation_email(form_name, form_data):

+ {tour_receipt}

Thank you for your time,
TACC Support