2015-12-14 16:53:07 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
2016-01-07 20:11:22 +00:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2016-02-03 13:00:26 +00:00
|
|
|
{% from "components/file-upload.html" import file_upload %}
|
2018-08-01 13:01:36 +01:00
|
|
|
{% from "components/message-count-label.html" import recipient_count_label %}
|
2016-04-05 11:16:29 +01:00
|
|
|
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
|
2015-11-30 14:17:54 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
2018-08-01 13:01:36 +01:00
|
|
|
Upload a list of {{ recipient_count_label(999, template.template_type) }}
|
2015-11-30 14:17:54 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
{% block maincolumn_content %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
2018-08-01 13:01:36 +01:00
|
|
|
<h1 class="heading-large">
|
|
|
|
|
Upload a list of {{ recipient_count_label(999, template.template_type) }}
|
|
|
|
|
</h1>
|
2016-04-18 11:10:47 +01:00
|
|
|
|
2016-05-05 08:39:36 +01:00
|
|
|
<div class="page-footer bottom-gutter">
|
|
|
|
|
{{file_upload(
|
|
|
|
|
form.file,
|
2016-07-01 07:06:11 +01:00
|
|
|
button_text='Choose a file'
|
2016-05-05 08:39:36 +01:00
|
|
|
)}}
|
2016-04-18 11:10:47 +01:00
|
|
|
</div>
|
2016-02-25 16:37:39 +00:00
|
|
|
|
2016-07-01 07:08:55 +01:00
|
|
|
<h2 class="heading-medium">Your file needs to look like this example</h2>
|
2017-05-11 12:19:38 +01:00
|
|
|
<p class="hint">
|
|
|
|
|
Save your file as a
|
|
|
|
|
<acronym title="Comma Separated Values">CSV</acronym>,
|
|
|
|
|
<acronym title="Tab Separated Values">TSV</acronym>,
|
|
|
|
|
<acronym title="Open Document Spreadsheet">ODS</acronym>,
|
|
|
|
|
or Microsoft Excel spreadsheet
|
|
|
|
|
</p>
|
2018-11-01 15:31:14 +00:00
|
|
|
|
|
|
|
|
<div class="spreadsheet" data-module="fullscreen-table">
|
2016-07-01 07:08:55 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
example,
|
|
|
|
|
caption="Example",
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
field_headings=[''] + column_headings
|
|
|
|
|
) %}
|
|
|
|
|
{{ index_field(row_number - 1) }}
|
|
|
|
|
{% for column in item %}
|
|
|
|
|
{{ text_field(column) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endcall %}
|
|
|
|
|
</div>
|
|
|
|
|
<p class="table-show-more-link">
|
2018-01-02 14:38:14 +00:00
|
|
|
<a href="{{ url_for('.get_example_csv', service_id=current_service.id, template_id=template.id) }}" download>Download this example</a>
|
2016-07-01 07:08:55 +01:00
|
|
|
</p>
|
2016-04-01 15:36:35 +01:00
|
|
|
|
2017-05-11 12:20:26 +01:00
|
|
|
<h2 class="heading-medium">Your file will populate this template ({{ template.name }})</h2>
|
|
|
|
|
{{ template|string }}
|
|
|
|
|
|
2016-04-05 11:20:52 +01:00
|
|
|
{% endblock %}
|