mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-24 09:58:43 -04:00
The ‘manage templates’ page was almost identical to the ‘send text messages’ page. This commit consolidates them into one and makes them all hang together. Part of this means tweaks to the javascript so that files upload as soon as you’ve chosen them.
31 lines
877 B
HTML
31 lines
877 B
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/sms-message.html" import sms_message %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/file-upload.html" import file_upload %}
|
||
{% from "components/table.html" import list_table, field %}
|
||
|
||
{% block page_title %}
|
||
Send text messages – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">Add recipients</h1>
|
||
|
||
<form method="POST" enctype="multipart/form-data">
|
||
|
||
<div class="grid-row">
|
||
<div class="column-two-thirds">
|
||
{{ sms_message(template.formatted_as_markup) }}
|
||
</div>
|
||
</div>
|
||
|
||
<p>
|
||
<a href="{{ url_for('.get_example_csv', service_id=service_id, template_id=template.id) }}">Download an example CSV file</a>
|
||
</p>
|
||
|
||
{{file_upload(form.file, button_text='Upload a CSV file')}}
|
||
|
||
</form>
|
||
{% endblock %}
|