mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Fix the logic about showing extra task list items
It should be: - if they have said they are going to send by a certain channel, show the extra required task(s) for that channel - if they haven’t said, infer from which templates they have
This commit is contained in:
@@ -27,10 +27,7 @@
|
||||
'Add templates with examples of the content you plan to send',
|
||||
url_for('main.choose_template', service_id=current_service.id),
|
||||
) }}
|
||||
{% if (
|
||||
current_service.has_email_templates
|
||||
and (current_service.volume_email != 0)
|
||||
) %}
|
||||
{% if current_service.intending_to_send_email %}
|
||||
{{ task_list_item(
|
||||
current_service.has_email_reply_to_address,
|
||||
'Add an email reply-to address',
|
||||
@@ -38,9 +35,8 @@
|
||||
) }}
|
||||
{% endif %}
|
||||
{% if (
|
||||
current_service.has_sms_templates
|
||||
current_service.intending_to_send_sms
|
||||
and current_service.shouldnt_use_govuk_as_sms_sender
|
||||
and (current_service.volume_sms != 0)
|
||||
) %}
|
||||
{{ task_list_item(
|
||||
not current_service.sms_sender_is_govuk,
|
||||
|
||||
Reference in New Issue
Block a user