Files
notifications-admin/app/templates/views/send.html
T

50 lines
1.5 KiB
HTML
Raw Normal View History

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 %}
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 %}
Upload recipients
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
<h1 class="heading-large">Upload recipients</h1>
2016-04-18 11:10:47 +01:00
<div class="page-footer bottom-gutter">
{{file_upload(
form.file,
button_text='Choose a file'
)}}
2016-04-18 11:10:47 +01:00
</div>
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>
2016-07-01 07:08:55 +01:00
<div class="spreadsheet">
{% 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>
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 %}