-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into epic/TUP-700-core-components-node-pkg
- Loading branch information
Showing
9 changed files
with
74 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -64,7 +72,7 @@ def send_confirmation_email(form_name, form_data): | |
send_mail( | ||
f"TACC Form Submission Received: {form_name}", | ||
email_body, | ||
"[email protected]", | ||
settings.DEFAULT_FROM_EMAIL, | ||
[form_data["email"]], | ||
html_message=email_body) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/tup-cms/src/taccsite_cms/templates/snippets/css-global-a11y.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<style id="css-global-a11y"> | ||
/* 1. To make mobile menu button stand out */ | ||
.navbar-dark .navbar-toggler { | ||
border-color: var(--global-color-primary--normal); | ||
} | ||
|
||
/* 2. To make keyboard focus stand out on header */ | ||
/* | ||
.nav-link:focus-visible, | ||
#header-logo:focus-visible, | ||
.navbar-dark .navbar-toggler:focus-visible { | ||
*/ | ||
#s-header :focus, | ||
#header-branding a:focus, | ||
.s-search-bar::part(input):focus, | ||
.s-search-bar::part(button):focus { | ||
outline-color: var(--global-color-primary--xx-light); | ||
} | ||
</style> |
15 changes: 0 additions & 15 deletions
15
apps/tup-cms/src/taccsite_cms/templates/snippets/css-news-hacks.html
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
apps/tup-cms/src/taccsite_cms/templates/snippets/js-prevent-ugly-urls.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script type="module" id="js-prevent-ugly-urls-tup-715"> | ||
const links = document.querySelectorAll('body > :is(header, main, footer) a[target="_blank"]'); | ||
|
||
/* HACK: To revert URL of links that Google changes on hover */ | ||
/* FAQ: Google Analytics settings interpret subdomain links as URLs to adjust so it can track navigation */ | ||
[ ...links ].forEach( function restoreLinkHrefChangedOnHover(link) { | ||
const isTACC = link.host.includes('tacc.utexas.edu'); | ||
|
||
if ( isTACC ) { | ||
let currentHrefVal = link.getAttribute('href'); | ||
|
||
link.setAttribute('data-original-href', currentHrefVal ); | ||
link.addEventListener('click', () => { | ||
const originalHrefVal = link.getAttribute('data-original-href'); | ||
|
||
currentHrefVal = link.getAttribute('href'); | ||
if ( currentHrefVal !== originalHrefVal ) { | ||
link.setAttribute('href', originalHrefVal ); | ||
} | ||
}); | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters