Skip to content

Commit

Permalink
Add link to contact form; fix sentence order; use getBooleanTag
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Nov 1, 2023
1 parent f4758a1 commit ea9f46b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esp/esp/web/views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def contact(request, section='esp'):
"""
from esp.dbmail.models import send_mail
# if not set up, immediately redirect
if not Tag.getTag('contact_form_enabled'):
if not Tag.getBooleanTag('contact_form_enabled'):
return HttpResponseRedirect("/contact.html")

if 'success' in request.GET:
Expand Down
3 changes: 2 additions & 1 deletion esp/templates/contact_qsd.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
{% block content %}

{% load render_qsd %}
{% load getTag %}

{% inline_qsd_block "contact" %}

<p>
For general communication, please email us at <b><a href="mailto:{{ settings.DEFAULT_EMAIL_ADDRESSES.default }}">{{ settings.DEFAULT_EMAIL_ADDRESSES.default }}</a></b>.
Before contacting us with a question or concern, please check our <b><a href="/faq.html">FAQ page</a></b>.
If your question is still not answered, please contact us {% if "contact_form_enabled"|getBooleanTag %}via <b><a href="/contact/contact">our contact form</a></b>{% else %} via email at <b><a href="mailto:{{ settings.DEFAULT_EMAIL_ADDRESSES.default }}">{{ settings.DEFAULT_EMAIL_ADDRESSES.default }}</a></b>{% endif %}.
</p>

{% end_inline_qsd_block %}
Expand Down

0 comments on commit ea9f46b

Please sign in to comment.