Make one-off error refer to correct message type

This was hard coded to say ‘You can’t send to this phone number’ even
when you were trying to send an email.
This commit is contained in:
Chris Hill-Scott
2017-07-25 23:06:55 +01:00
parent 2291c4faf4
commit a58d881647
2 changed files with 32 additions and 1 deletions

View File

@@ -12,7 +12,9 @@
{% call banner_wrapper(type='dangerous') %}
{% with
count_of_recipients=1,
template_type_label='phone number'
template_type_label=(
'phone number' if template.template_type == 'sms' else 'email address'
)
%}
{% include "partials/check/not-allowed-to-send-to.html" %}
{% endwith %}