Allow GPs to click through to the agreement

We want GPs to be able to accept the agreement online. But at the moment
they don’t get automatically assigned to organisations. So we need to
let them enter the agreement accepting journey even if they don’t have
an organisation set up.
This commit is contained in:
Chris Hill-Scott
2019-09-04 15:55:09 +01:00
parent 2fe7887ec6
commit d41effe8ce
4 changed files with 64 additions and 9 deletions

View File

@@ -48,9 +48,9 @@
url_for('main.service_sms_senders', service_id=current_service.id),
) }}
{% endif %}
{% if show_agreement %}
{% if current_service.able_to_accept_agreement %}
{{ task_list_item(
agreement_signed,
current_service.organisation.agreement_signed,
'Accept our data sharing and financial agreement',
url_for('main.service_agreement', service_id=current_service.id),
) }}
@@ -60,7 +60,7 @@
<p>
Only team members with a government email address can request to go live.
</p>
{% elif (not current_service.go_live_checklist_completed) or (show_agreement and not agreement_signed) %}
{% elif (not current_service.go_live_checklist_completed) or (current_service.able_to_accept_agreement and not current_service.organisation.agreement_signed) %}
<p>
You must complete these steps before you can request to go live.
</p>