From 734666ee53a82a52b35526251c5469bb3ea91bf9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 1 May 2019 08:00:25 +0100 Subject: [PATCH] Refactor agreement pages into includes So we can re-use the same content in multiple places. --- .../views/agreement/_agreement-choose.html | 35 ++++++++++++++++++ .../views/agreement/_agreement-signed.html | 8 ++++ app/templates/views/agreement/_agreement.html | 17 +++++++++ .../views/agreement/agreement-choose.html | 37 +------------------ .../views/agreement/agreement-signed.html | 10 +---- app/templates/views/agreement/agreement.html | 18 +-------- 6 files changed, 65 insertions(+), 60 deletions(-) create mode 100644 app/templates/views/agreement/_agreement-choose.html create mode 100644 app/templates/views/agreement/_agreement-signed.html create mode 100644 app/templates/views/agreement/_agreement.html diff --git a/app/templates/views/agreement/_agreement-choose.html b/app/templates/views/agreement/_agreement-choose.html new file mode 100644 index 000000000..4538dad62 --- /dev/null +++ b/app/templates/views/agreement/_agreement-choose.html @@ -0,0 +1,35 @@ +

+ Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement. +

+

+ Crown bodies +

+

+ Download the crown agreement. +

+

+ Non-crown bodies +

+

+ Download the non-crown agreement. +

+
+

+ Contact us if you’re + not sure whether your organisation is a crown or non-crown body. +

+
+

+ Next steps +

+
    +
  1. + Get the agreement signed by someone who has the authority to do so on behalf of {{ owner or 'your organisation' }}. +
  2. +
  3. + Return the signed copy to notify-support@digital.cabinet-office.gov.uk. +
  4. +
+

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

diff --git a/app/templates/views/agreement/_agreement-signed.html b/app/templates/views/agreement/_agreement-signed.html new file mode 100644 index 000000000..35819b126 --- /dev/null +++ b/app/templates/views/agreement/_agreement-signed.html @@ -0,0 +1,8 @@ +

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

+

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

diff --git a/app/templates/views/agreement/_agreement.html b/app/templates/views/agreement/_agreement.html new file mode 100644 index 000000000..2e462192a --- /dev/null +++ b/app/templates/views/agreement/_agreement.html @@ -0,0 +1,17 @@ +

+ Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement. +

+
    +
  1. + Download the agreement. +
  2. +
  3. + Get it signed by someone who has the authority to do so on behalf of {{ owner }}. +
  4. +
  5. + Return the signed copy to notify-support@digital.cabinet-office.gov.uk. +
  6. +
+

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

diff --git a/app/templates/views/agreement/agreement-choose.html b/app/templates/views/agreement/agreement-choose.html index 592eb9533..9f0d6ae5f 100644 --- a/app/templates/views/agreement/agreement-choose.html +++ b/app/templates/views/agreement/agreement-choose.html @@ -17,41 +17,8 @@ GOV.UK Notify data sharing and financial agreement -

- Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement. -

-

- Crown bodies -

-

- Download the crown agreement. -

-

- Non-crown bodies -

-

- Download the non-crown agreement. -

-
-

- Contact us if you’re - not sure whether your organisation is a crown or non-crown body. -

-
-

- Next steps -

-
    -
  1. - Get the agreement signed by someone who has the authority to do so on behalf of {{ owner or 'your organisation' }}. -
  2. -
  3. - Return the signed copy to notify-support@digital.cabinet-office.gov.uk. -
  4. -
-

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

+ {% include 'views/agreement/_agreement-choose.html'%} + diff --git a/app/templates/views/agreement/agreement-signed.html b/app/templates/views/agreement/agreement-signed.html index b38c76193..4cd1c6946 100644 --- a/app/templates/views/agreement/agreement-signed.html +++ b/app/templates/views/agreement/agreement-signed.html @@ -17,14 +17,8 @@ GOV.UK Notify data sharing and financial agreement -

- Your organisation ({{ owner }}) has already accepted the GOV.UK - Notify data sharing and financial agreement. You can - download a copy. -

-

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

+ {% include 'views/agreement/_agreement-signed.html' %} + diff --git a/app/templates/views/agreement/agreement.html b/app/templates/views/agreement/agreement.html index 16f72689d..a5fbfcacd 100644 --- a/app/templates/views/agreement/agreement.html +++ b/app/templates/views/agreement/agreement.html @@ -17,23 +17,7 @@ GOV.UK Notify data sharing and financial agreement -

- Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement. -

-
    -
  1. - Download the agreement. -
  2. -
  3. - Get it signed by someone who has the authority to do so on behalf of {{ owner }}. -
  4. -
  5. - Return the signed copy to notify-support@digital.cabinet-office.gov.uk. -
  6. -
-

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

+ {% include 'views/agreement/_agreement.html'%}