Move request to go live notes into template

We can make the `as_agreement_statement_for_go_live_request` method less
complex by offloading some of the content it returns to the presentation
layer.
This commit is contained in:
Chris Hill-Scott
2021-10-11 15:05:15 +01:00
parent ec703c5998
commit 1ab83c48e3
2 changed files with 5 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ Service: {{ current_service.name }}
---
Organisation type: {{ current_service.organisation_type_label }}
Agreement signed: {{ current_service.organisation.as_agreement_statement_for_go_live_request(current_user.email_domain) }}
{%- if current_service.organisation.request_to_go_live_notes %} {{ current_service.organisation.request_to_go_live_notes }}{% endif %}
{%- if current_service.organisation.agreement_signed_by %}
Agreement signed by: {{ current_service.organisation.agreement_signed_by.email_address }}
{% endif -%}