mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Refactor conditional inside paragraph
This will make it easier to add more branches later.
This commit is contained in:
@@ -21,25 +21,19 @@
|
|||||||
<h1 class="heading-medium">
|
<h1 class="heading-medium">
|
||||||
{{ page_title }}
|
{{ page_title }}
|
||||||
</h1>
|
</h1>
|
||||||
{% if current_user.has_permissions('manage_templates') %}
|
|
||||||
<p class="govuk-body">
|
<p class="govuk-body">
|
||||||
|
{% if current_user.has_permissions('manage_templates') %}
|
||||||
You need a template before you can send
|
You need a template before you can send
|
||||||
{% if 'letter' in current_service.permissions %}
|
{% else %}
|
||||||
emails, text messages or letters
|
You need to ask your service manager to add templates before you can send
|
||||||
{%- else -%}
|
{% endif %}
|
||||||
emails or text messages
|
{% if 'letter' in current_service.permissions %}
|
||||||
{%- endif %}.
|
emails, text messages or letters
|
||||||
</p>
|
{%- else -%}
|
||||||
{% else %}
|
emails or text messages
|
||||||
<p class="govuk-body">
|
{%- endif %}.
|
||||||
You need to ask your service manager to add templates before you can send
|
</p>
|
||||||
{% if 'letter' in current_service.permissions %}
|
|
||||||
emails, text messages or letters
|
|
||||||
{%- else -%}
|
|
||||||
emails or text messages
|
|
||||||
{%- endif %}.
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user