mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 01:19:27 -04:00
Based on discussion with Pete. Make the blue banner an ‘important’ banner (copied from Register to Vote, used because it’s not as boxy and fits on the page better). Remove the back button because you haven’t changed any data yet. If you need to go back you can just press back or start again. Make the filename stand out more. Remove the ‘download example’ link. Will need to revist the best way of doing this. Make text messages consistently 2/3rd width.
50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/sms-message.html" import sms_message %}
|
|
{% from "components/table.html" import list_table, field %}
|
|
{% from "components/placeholder.html" import placeholder %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block page_title %}
|
|
GOV.UK Notify | Send text messages
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">Check and confirm</h1>
|
|
|
|
{% if upload_result.rejects %}
|
|
<h3 class="heading-small">The following numbers are invalid</h3>
|
|
{% for rejected in upload_result.rejects %}
|
|
<p>Line {{rejected.line_number}}: {{rejected.phone }}</a>
|
|
{% endfor %}
|
|
<p><a href="{{url_for('.send_sms', service_id=service_id, template_id=template_id)}}" class="button">Go back and resolve errors</a></p>
|
|
|
|
{% else %}
|
|
|
|
<div class="grid-row">
|
|
<div class="column-two-thirds">
|
|
{{ sms_message(
|
|
message_template|replace_placeholders(upload_result.valid[0])
|
|
)}}
|
|
</div>
|
|
</div>
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="button" value="{{ "Send {} text message{}".format(upload_result.valid|count, '' if upload_result.valid|count == 1 else 's') }}" />
|
|
<a href="{{url_for('.send_sms', service_id=service_id, template_id=template_id)}}" class="page-footer-back-link">Back</a>
|
|
</form>
|
|
|
|
{% call(item) list_table(
|
|
upload_result.valid,
|
|
caption=original_file_name,
|
|
field_headings=['Phone number']
|
|
) %}
|
|
{% call field() %}
|
|
{{ item.phone }}
|
|
{% endcall %}
|
|
{% endcall %}
|
|
|
|
{% endif %}
|
|
{% endblock %}
|