Refactor agreement pages into includes

So we can re-use the same content in multiple places.
This commit is contained in:
Chris Hill-Scott
2019-05-01 08:00:25 +01:00
parent dbf8b22d3c
commit 734666ee53
6 changed files with 65 additions and 60 deletions

View File

@@ -0,0 +1,35 @@
<p>
Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement.
</p>
<h2 class="heading-small">
Crown bodies
</h2>
<p>
Download the <a href="{{ url_for('main.public_download_agreement', variant='crown') }}">crown agreement</a>.
</p>
<h2 class="heading-small">
Non-crown bodies
</h2>
<p>
Download the <a href="{{ url_for('main.public_download_agreement', variant='non-crown') }}">non-crown agreement</a>.
</p>
<div class="panel panel-border-wide">
<p>
<a href="{{ url_for('main.support') }}">Contact us</a> if youre
not sure whether your organisation is a crown or non-crown body.
</p>
</div>
<h2 class="heading-small">
Next steps
</h2>
<ol class="list list-number">
<li>
Get the agreement signed by someone who has the authority to do so on behalf of {{ owner or 'your organisation' }}.
</li>
<li>
Return the signed copy to <a href="mailto:notify-support@digital.cabinet-office.gov.uk">notify-support@digital.cabinet-office.gov.uk</a>.
</li>
</ol>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>

View File

@@ -0,0 +1,8 @@
<p>
Your organisation ({{ owner }}) has already accepted the GOV.UK
Notify data sharing and financial agreement. You can
<a href="{{ url_for('main.download_agreement') }}">download a copy</a>.
</p>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>

View File

@@ -0,0 +1,17 @@
<p>
Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement.
</p>
<ol class="list list-number">
<li>
<a href="{{ url_for('main.download_agreement') }}">Download the agreement</a>.
</li>
<li>
Get it signed by someone who has the authority to do so on behalf of {{ owner }}.
</li>
<li>
Return the signed copy to <a href="mailto:notify-support@digital.cabinet-office.gov.uk">notify-support@digital.cabinet-office.gov.uk</a>.
</li>
</ol>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>

View File

@@ -17,41 +17,8 @@
GOV.UK Notify data sharing and financial agreement
</h1>
<p>
Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement.
</p>
<h2 class="heading-small">
Crown bodies
</h2>
<p>
Download the <a href="{{ url_for('main.public_download_agreement', variant='crown') }}">crown agreement</a>.
</p>
<h2 class="heading-small">
Non-crown bodies
</h2>
<p>
Download the <a href="{{ url_for('main.public_download_agreement', variant='non-crown') }}">non-crown agreement</a>.
</p>
<div class="panel panel-border-wide">
<p>
<a href="{{ url_for('main.support') }}">Contact us</a> if youre
not sure whether your organisation is a crown or non-crown body.
</p>
</div>
<h2 class="heading-small">
Next steps
</h2>
<ol class="list list-number">
<li>
Get the agreement signed by someone who has the authority to do so on behalf of {{ owner or 'your organisation' }}.
</li>
<li>
Return the signed copy to <a href="mailto:notify-support@digital.cabinet-office.gov.uk">notify-support@digital.cabinet-office.gov.uk</a>.
</li>
</ol>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>
{% include 'views/agreement/_agreement-choose.html'%}
</div>
</div>

View File

@@ -17,14 +17,8 @@
GOV.UK Notify data sharing and financial agreement
</h1>
<p>
Your organisation ({{ owner }}) has already accepted the GOV.UK
Notify data sharing and financial agreement. You can
<a href="{{ url_for('main.download_agreement') }}">download a copy</a>.
</p>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>
{% include 'views/agreement/_agreement-signed.html' %}
</div>
</div>

View File

@@ -17,23 +17,7 @@
GOV.UK Notify data sharing and financial agreement
</h1>
<p>
Before you can go live on GOV.UK Notify, your organisation needs to agree to our data sharing and financial agreement.
</p>
<ol class="list list-number">
<li>
<a href="{{ url_for('main.download_agreement') }}">Download the agreement</a>.
</li>
<li>
Get it signed by someone who has the authority to do so on behalf of {{ owner }}.
</li>
<li>
Return the signed copy to <a href="mailto:notify-support@digital.cabinet-office.gov.uk">notify-support@digital.cabinet-office.gov.uk</a>.
</li>
</ol>
<p>
The agreement contains commercially sensitive information, so dont share it more widely than you need to.
</p>
{% include 'views/agreement/_agreement.html'%}
</div>
</div>