mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 04:33:13 -04:00
Refactor to put yes/no/can’t tell in one place
The code is a bit easier to follow if the same output is always coming from the same statement in the code.
This commit is contained in:
@@ -3,11 +3,11 @@ Service: {{ current_service.name }}
|
|||||||
|
|
||||||
---
|
---
|
||||||
Organisation type: {{ current_service.organisation_type_label }}
|
Organisation type: {{ current_service.organisation_type_label }}
|
||||||
Agreement signed:
|
Agreement signed: {{ current_service.organisation.agreement_signed|format_yes_no(none='Can’t tell') }}
|
||||||
{%- if current_service.organisation.agreement_signed %} Yes, on behalf of {{ current_service.organisation.name }}.
|
{%- if current_service.organisation.agreement_signed %}, on behalf of {{ current_service.organisation.name }}
|
||||||
{%- elif current_service.organisation.name %} {{ current_service.organisation.agreement_signed|format_yes_no(none='Can’t tell') }} (organisation is {{ current_service.organisation.name }}, {{ current_service.organisation.crown|format_yes_no(yes='a crown body', no='a non-crown body', none='crown status unknown') }}).
|
{%- elif current_service.organisation.name %} (organisation is {{ current_service.organisation.name }}, {{ current_service.organisation.crown|format_yes_no(yes='a crown body', no='a non-crown body', none='crown status unknown') }})
|
||||||
{%- else %} Can’t tell (domain is {{ current_user.email_domain }}).
|
{%- else %} (domain is {{ current_user.email_domain }})
|
||||||
{%- endif %}
|
{%- endif %}.
|
||||||
{%- if current_service.organisation.request_to_go_live_notes %} {{ current_service.organisation.request_to_go_live_notes }}{% endif %}
|
{%- 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 %}
|
{%- if current_service.organisation.agreement_signed_by %}
|
||||||
Agreement signed by: {{ current_service.organisation.agreement_signed_by.email_address }}
|
Agreement signed by: {{ current_service.organisation.agreement_signed_by.email_address }}
|
||||||
|
|||||||
Reference in New Issue
Block a user