mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Make terms page smarter about the agreement
People are emailing us asking if their organisation has signed the agreement. In some cases they have, so this is a waste of their and our time. This commit adds a bit of logic to the terms of use page to tell users when their organisation has already signed the agreement.
This commit is contained in:
@@ -9,6 +9,7 @@ from app import convert_to_boolean
|
||||
from app.main import main
|
||||
from app.main.forms import SearchTemplatesForm
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav
|
||||
from app.utils import GovernmentDomain
|
||||
|
||||
|
||||
@main.route('/')
|
||||
@@ -152,7 +153,8 @@ def security():
|
||||
def terms():
|
||||
return render_template(
|
||||
'views/terms-of-use.html',
|
||||
navigation_links=features_nav()
|
||||
navigation_links=features_nav(),
|
||||
agreement_info=GovernmentDomain.from_current_user(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -15,9 +15,18 @@ Terms of use
|
||||
<div class="column-two-thirds">
|
||||
|
||||
<h1 class="heading-large">Terms of use</h1>
|
||||
<p>To go live on GOV.UK Notify, you must accept our data sharing and financial agreement.</p>
|
||||
<p><a href="{{url_for('.feedback', ticket_type='ask-question-give-feedback')}}">Contact us</a> to get a copy of the agreement or find out if your organisation has already accepted it.</p>
|
||||
<p>To accept these terms of use, you must be the service manager for your service.</p>
|
||||
|
||||
<p>By using GOV.UK Notify, you agree to follow our terms of use.</p>
|
||||
<p>The service manager for your service has to accept the terms of use when you request to go live on Notify.</p>
|
||||
|
||||
<h2 class="heading-medium">Data sharing and financial agreement</h2>
|
||||
|
||||
{% if agreement_info.agreement_signed %}
|
||||
<p>Your organisation ({{ agreement_info.owner }}) has already accepted the GOV.UK Notify data sharing and financial agreement.</p>
|
||||
{% else %}
|
||||
<p>For your service to go live on Notify, your organisation must accept our data sharing and financial agreement.</p>
|
||||
<p><a href="{{url_for('.feedback', ticket_type='ask-question-give-feedback')}}">Contact us</a> to get a copy of the agreement or find out if your organisation has already accepted it.</p>
|
||||
{% endif %}
|
||||
|
||||
<h2 class="heading-medium">Notify’s side of the agreement</h2>
|
||||
<p>We agree to:</p>
|
||||
|
||||
Reference in New Issue
Block a user