mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 12:08:25 -04:00
Alias some variables
This just makes the code a bit less verbose.
This commit is contained in:
@@ -1,29 +1,33 @@
|
|||||||
Service: {{ current_service.name }}
|
{% set service = current_service -%}
|
||||||
{{ url_for('main.service_dashboard', service_id=current_service.id, _external=True) }}
|
{% set organisation = service.organisation -%}
|
||||||
|
{% set user = current_user -%}
|
||||||
|
|
||||||
|
Service: {{ service.name }}
|
||||||
|
{{ url_for('main.service_dashboard', service_id=service.id, _external=True) }}
|
||||||
|
|
||||||
---
|
---
|
||||||
Organisation type: {{ current_service.organisation_type_label }}
|
Organisation type: {{ service.organisation_type_label }}
|
||||||
Agreement signed: {{ current_service.organisation.agreement_signed|format_yes_no(none='Can’t tell') }}
|
Agreement signed: {{ organisation.agreement_signed|format_yes_no(none='Can’t tell') }}
|
||||||
{%- if current_service.organisation.agreement_signed %}, on behalf of {{ current_service.organisation.name }}
|
{%- if organisation.agreement_signed %}, on behalf of {{ current_service.organisation.name }}
|
||||||
{%- 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') }})
|
{%- elif organisation.name %} (organisation is {{ organisation.name }}, {{ organisation.crown|format_yes_no(yes='a crown body', no='a non-crown body', none='crown status unknown') }})
|
||||||
{%- else %} (domain is {{ current_user.email_domain }})
|
{%- else %} (domain is {{ user.email_domain }})
|
||||||
{%- endif %}.
|
{%- endif %}.
|
||||||
{%- if current_service.organisation.request_to_go_live_notes %} {{ current_service.organisation.request_to_go_live_notes }}{% endif %}
|
{%- if organisation.request_to_go_live_notes %} {{ organisation.request_to_go_live_notes }}{% endif %}
|
||||||
{%- if current_service.organisation.agreement_signed_by %}
|
{%- if organisation.agreement_signed_by %}
|
||||||
Agreement signed by: {{ current_service.organisation.agreement_signed_by.email_address }}
|
Agreement signed by: {{ organisation.agreement_signed_by.email_address }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{%- if current_service.organisation.agreement_signed_on_behalf_of_email_address -%}
|
{%- if organisation.agreement_signed_on_behalf_of_email_address -%}
|
||||||
Agreement signed on behalf of: {{ current_service.organisation.agreement_signed_on_behalf_of_email_address }}
|
Agreement signed on behalf of: {{ organisation.agreement_signed_on_behalf_of_email_address }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
Emails in next year: {{ current_service.volume_email|format_thousands }}
|
Emails in next year: {{ service.volume_email|format_thousands }}
|
||||||
Text messages in next year: {{ current_service.volume_sms|format_thousands }}
|
Text messages in next year: {{ service.volume_sms|format_thousands }}
|
||||||
Letters in next year: {{ current_service.volume_letter|format_thousands }}
|
Letters in next year: {{ service.volume_letter|format_thousands }}
|
||||||
|
|
||||||
Consent to research: {{ current_service.consent_to_research|format_yes_no }}
|
Consent to research: {{ service.consent_to_research|format_yes_no }}
|
||||||
Other live services for that user: {{ current_user.live_services|format_yes_no }}
|
Other live services for that user: {{ user.live_services|format_yes_no }}
|
||||||
|
|
||||||
Service reply-to address: {{ current_service.default_email_reply_to_address or "not set" }}
|
Service reply-to address: {{ service.default_email_reply_to_address or "not set" }}
|
||||||
|
|
||||||
---
|
---
|
||||||
Request sent by {{ current_user.email_address }}
|
Request sent by {{ current_user.email_address }}
|
||||||
|
|||||||
Reference in New Issue
Block a user