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):
- - For training registration requests, you will be contacted within one week to confirm registration. For additional help please contact Lauren Bruce (lbruce@tacc.utexas.edu).
+ - For information about training opportunities, please visit the Training page, or contact Tabish Khan (tkhan@tacc.utexas.edu).
- For tour requests, a tour coordinator will contact you within two business days to complete your reservation. For additional assistance please reach out to info@tacc.utexas.edu.
- - For all other issues, a TACC support person will be in contact shortly. For additional assistance please reach out to info@tacc.utexas.edu.
+ - For additional assistance please reach out to info@tacc.utexas.edu.
+ {tour_receipt}
Thank you for your time,
TACC Support