diff --git a/app/main/views/agreement.py b/app/main/views/agreement.py index e4ab40cd1..630e5a94d 100644 --- a/app/main/views/agreement.py +++ b/app/main/views/agreement.py @@ -20,6 +20,13 @@ def agreement(): navigation_links=features_nav(), ) + if agreement_info.agreement_signed: + return render_template( + 'views/agreement-signed.html', + owner=agreement_info.owner, + navigation_links=features_nav(), + ) + return render_template( 'views/agreement.html', owner=agreement_info.owner, diff --git a/app/templates/views/agreement-signed.html b/app/templates/views/agreement-signed.html new file mode 100644 index 000000000..212360855 --- /dev/null +++ b/app/templates/views/agreement-signed.html @@ -0,0 +1,33 @@ +{% extends "withoutnav_template.html" %} +{% from "components/sub-navigation.html" import sub_navigation %} + +{% block per_page_title %} + Download the GOV.UK Notify data sharing and financial agreement +{% endblock %} + +{% block maincolumn_content %} + +
+
+ {{ sub_navigation(navigation_links) }} +
+
+ +

+ Download the GOV.UK Notify data sharing and financial agreement +

+ +

+ Your organisation ({{ owner }}) has already accepted the GOV.UK + Notify data sharing and financial agreement. +

+

+ If you need to you can download a copy here. +

+

+ The agreement contains commercially sensitive information, so don’t share it more widely than you need to. +

+
+
+ +{% endblock %} diff --git a/tests/app/main/views/test_agreement.py b/tests/app/main/views/test_agreement.py index 396efb699..02bc6b34e 100644 --- a/tests/app/main/views/test_agreement.py +++ b/tests/app/main/views/test_agreement.py @@ -21,7 +21,6 @@ class _MockS3Object(): 'test@cabinet-office.gov.uk', [ partial(url_for, 'main.download_agreement'), - lambda: 'mailto:notify-support@digital.cabinet-office.gov.uk', ] ), (