Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
change template and hardcoded email address
Browse files Browse the repository at this point in the history
  • Loading branch information
sc15zs committed Jun 4, 2024
1 parent 62887f8 commit b45e29a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 7 additions & 1 deletion app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
process_api_response,
)
from app.main.forms import DownloadForm
from config.envs.default import DefaultConfig


@bp.route("/", methods=["GET"])
Expand Down Expand Up @@ -131,7 +132,12 @@ def download():
@bp.route("/request-received", methods=["GET", "POST"])
@login_required(return_app=SupportedApp.POST_AWARD_FRONTEND)
def request_received():
return render_template("request-received.html", user_email=g.user.email)
contact_email = DefaultConfig.CONTACT_EMAIL
context = {
"contact_email": contact_email,
"user_email": g.user.email
}
return render_template("request-received.html", context=context)


@bp.route("/accessibility", methods=["GET"])
Expand Down
12 changes: 3 additions & 9 deletions app/templates/main/request-received.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ <h2 class="govuk-heading-m govuk-!-margin-top-7">
What happens next
</h2>
<p class="govuk-body">
We will email a link to
<span class="govuk-!-font-weight-bold">
{{user_email}}
</span>.
We will email a link to <span class="govuk-!-font-weight-bold">{{ user_email }}</span>.
</p>
<p class="govuk-body">
This may take anything up to 5 minutes to come through to your inbox.
Expand All @@ -29,13 +26,10 @@ <h2 class="govuk-heading-m">
<p class="govuk-body">
If you cannot see the email in your inbox, check your junk or spam folder.
If you’re still having problems,
<a class="govuk-link govuk-link--no-visited-state" href="/download">
<a class="govuk-link govuk-link--no-visited-state" href="url_for('download')">
request a new link to download your data
</a> or email us at
<a class="govuk-link govuk-link--no-visited-state"
href="mailto:[email protected]">
[email protected]
</a>.
<a class="govuk-link govuk-link--no-visited-state" href="{{ contact_email }}">{{ contact_email }}</a>.
</p>
</div>
</div>
Expand Down

0 comments on commit b45e29a

Please sign in to comment.