mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Add table of recipients
Uses an adapted version of the 'summary table' pattern from Digital Marketplace frontend toolkit: http://alphagov.github.io/digitalmarketplace-frontend-toolkit/summary-table.html
This commit is contained in:
@@ -1,22 +1,37 @@
|
||||
{% extends "admin_template.html" %}
|
||||
{% from "components/sms-message.html" import sms_message %}
|
||||
{% from "components/table.html" import table, field %}
|
||||
{% from "components/placeholder.html" import placeholder %}
|
||||
|
||||
{% block page_title %}
|
||||
GOV.UK Notify | Send text messages
|
||||
GOV.UK Notify | Send text messages
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-xlarge">Send text messages</h1>
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-xlarge">Send text messages</h1>
|
||||
|
||||
{{ sms_message(message_template) }}
|
||||
<h2 class="heading-medium">Check and confirm</h2>
|
||||
{{ sms_message(message_template) }}
|
||||
|
||||
<p>
|
||||
<a class="button" href="/jobs/job" role="button">Send {{recipient_count}} text messages</a>
|
||||
</p>
|
||||
<p>
|
||||
<a class="button" href="/jobs/job" role="button">Send {{recipients|length}} text messages</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% call(item) table(
|
||||
recipients,
|
||||
caption="Preview of the first 3 recipients",
|
||||
field_headings=[
|
||||
'Recipient', placeholder('registration number'), placeholder('date')
|
||||
]
|
||||
) %}
|
||||
{% call field() %}{{item.phone}}{% endcall %}
|
||||
{% call field() %}{{item.registration}}{% endcall %}
|
||||
{% call field() %}{{item.date}}{% endcall %}
|
||||
{% endcall %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<p>
|
||||
<a href="#">Create a new template</a>
|
||||
</p>
|
||||
|
||||
<h2 class="heading-medium">2. Add recipients</h2>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user