mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
The inbox should work a bit like the one on your phone. You shouldn’t see all the messages, but the latest one from each of your ‘contacts’ only.
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
{% from "components/table.html" import list_table, field, hidden_field_heading, right_aligned_field_heading, row_heading %}
|
||
{% from "components/message-count-label.html" import message_count_label %}
|
||
|
||
{% extends "withnav_template.html" %}
|
||
|
||
{% block service_page_title %}
|
||
Received text messages
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
Received text messages
|
||
</h1>
|
||
<div>
|
||
{% call(item, row_number) list_table(
|
||
messages,
|
||
caption="Inbox",
|
||
caption_visible=False,
|
||
empty_message='When users text your service’s phone number ({}) you’ll see the messages here'.format(current_service.sms_sender),
|
||
field_headings=[
|
||
'From',
|
||
'First two lines of message'
|
||
],
|
||
field_headings_visible=False
|
||
) %}
|
||
{% call field() %}
|
||
<span class="file-list-filename" href="#">{{ item.user_number | format_phone_number_human_readable }}</span>
|
||
<span class="wide-left-hand-column">{{ item.content }}</span>
|
||
{% endcall %}
|
||
{% call field(align='right') %}
|
||
<span class="file-list-hint align-with-message-body">
|
||
{{ item.created_at | format_delta }}
|
||
</span>
|
||
{% endcall %}
|
||
{% endcall %}
|
||
{% if messages %}
|
||
<p class="table-show-more-link">
|
||
{{ count_of_messages }} message{{ '' if 1 == count_of_messages else 's' }}
|
||
from {{ count_of_users }} user{{ '' if 1 == count_of_users else 's' }}
|
||
</p>
|
||
{% endif %}
|
||
</div>
|
||
{% endblock %}
|