Replace ‘send a batch’ with ‘send from a CSV file’

This is better. Not done enough testing to know if it’s the best, but
let’s try it.
This commit is contained in:
Chris Hill-Scott
2016-04-01 14:24:39 +01:00
parent 95b75d8220
commit 7625e184e2
2 changed files with 6 additions and 5 deletions

View File

@@ -77,7 +77,7 @@
<div class="column-one-third">
<div class="sms-message-use-links">
{% if current_user.has_permissions(permissions=['send_texts', 'send_emails', 'send_letters']) %}
<a href="{{ url_for(".send_messages", service_id=service_id, template_id=template.id) }}">Send a batch</a>
<a href="{{ url_for(".send_messages", service_id=service_id, template_id=template.id) }}">Send from a CSV file</a>
<a href="{{ url_for(".send_message_to_self", service_id=service_id, template_id=template.id) }}">Send yourself a test</a>
{% endif %}
{% if current_user.has_permissions(permissions=['manage_api_keys']) %}

View File

@@ -11,7 +11,7 @@
{% block maincolumn_content %}
<h1 class="heading-large">Send a batch</h1>
<h1 class="heading-large">Send from a CSV file</h1>
{% if 'sms' == template.template_type %}
<div class="grid-row">
@@ -31,13 +31,14 @@
<div class="grid-row">
<div class="column-two-thirds">
<p>
Add recipients by uploading a .csv file with
You need
{{ template.placeholders|length + 1 }}
{% if template.placeholders %}
columns:
columns
{% else %}
column:
column
{% endif %}
in your file:
</p>
<p class="bottom-gutter-2-3">
<span class='placeholder'>{{ recipient_column }}</span>