diff --git a/app/main/views/send.py b/app/main/views/send.py index 065862ce2..72d0166ee 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -510,7 +510,7 @@ def choose_from_contact_list(service_id, template_id): current_service.id, template_type=template.template_type, ), - template=current_service.get_template(template_id), + template=template, ) diff --git a/app/templates/views/send-contact-list.html b/app/templates/views/send-contact-list.html index 1827485a0..e5634d927 100644 --- a/app/templates/views/send-contact-list.html +++ b/app/templates/views/send-contact-list.html @@ -1,5 +1,6 @@ {% extends "withnav_template.html" %} {% from "components/big-number.html" import big_number -%} +{% from "components/list.html" import list_of_placeholders %} {% from "components/message-count-label.html" import recipient_count_label %} {% from "components/page-header.html" import page_header %} {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %} @@ -15,7 +16,20 @@ back_link=url_for('.send_one_off', service_id=current_service.id, template_id=template.id) ) }} - {% if contact_lists %} + {% if template.placeholders %} +
+ You cannot use a saved contact list with this template because it + is personalised with {{ list_of_placeholders(template.placeholders) }}. +
++ Saved contact lists can only store email addresses or phone + numbers. +
+- You have not saved any lists of {{ recipient_count_label(99, template.template_type) }} yet. -
-- To upload and save a new contact list, go to the uploads page. -
++ You have not saved any lists of {{ recipient_count_label(99, template.template_type) }} yet. +
++ To upload and save a new contact list, go to the uploads page. +
+