Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Sep 17, 2024
2 parents 4b3d523 + 8d1816d commit 3e27884
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/tup-cms/src/apps/portal/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,26 @@ def submit_ticket(form_data):


def send_confirmation_email(form_name, form_data):

tour_receipt = ""
if form_name == "Tour Request Form":
tour_receipt = "<p>A copy of your tour request is provided below for your records:</p>\n"
for key in form_data:
tour_receipt += f"<p>{key}: {form_data[key]}</p>\n"

email_body = f"""
<p>Greetings,</p>
<p>
Thank you for reaching out to TACC and completing the {form_name}.
</p>
<p>
<ul>
<li>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).</li>
<li>For information about training opportunities, please visit the <a href="https://tacc.utexas.edu/use-tacc/training/">Training page</a>, or contact Tabish Khan (tkhan@tacc.utexas.edu).</li>
<li>For tour requests, a tour coordinator will contact you within two business days to complete your reservation. For additional assistance please reach out to [email protected].</li>
<li>For all other issues, a TACC support person will be in contact shortly. For additional assistance please reach out to [email protected].</li>
<li>For additional assistance please reach out to [email protected].</li>
</ul>
</p>
{tour_receipt}
<p>
Thank you for your time,<br>
TACC Support
Expand Down

0 comments on commit 3e27884

Please sign in to comment.