mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-27 20:51:00 -04:00
If you’re using inbound SMS then I reckon it’s useful to be able to naviagate from one message to the context in which that message sits (ie the conversation). This commit adds that link. This is maybe a stopgap until we do something more like chat, where you can reply on the same screen where you see the conversation, but maybe it turns out we don’t want to do that – lets see how this works.
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/banner.html" import banner %}
|
|
{% from "components/ajax-block.html" import ajax_block %}
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block service_page_title %}
|
|
{{ message_count_label(1, template.template_type, suffix='') | capitalize }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
{{ message_count_label(1, template.template_type, suffix='') | capitalize }}
|
|
</h1>
|
|
|
|
<p>
|
|
{% if help %}
|
|
{{ template.name }}
|
|
{% else %}
|
|
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">{{ template.name }}</a>
|
|
{% endif %}
|
|
sent
|
|
{% if job and job.original_file_name != 'Report' %}
|
|
from
|
|
<a href="{{ url_for('.view_job', service_id=current_service.id, job_id=job.id) }}">{{ job.original_file_name }}</a>
|
|
{% elif created_by %}
|
|
by {{ created_by.name }}
|
|
{% endif %}
|
|
on {{ created_at|format_datetime_short }}
|
|
</p>
|
|
|
|
{% if template.template_type == 'letter' %}
|
|
<p>
|
|
Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{{ template|string }}
|
|
|
|
{% if template.template_type != 'letter' %}
|
|
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
|
|
{% endif %}
|
|
|
|
{% if current_user.has_permissions(['send_texts'], admin_override=True) and template.template_type == 'sms' and can_receive_inbound %}
|
|
<p>
|
|
<a href="{{ url_for('.conversation', service_id=current_service.id, notification_id=notification_id, _anchor='n{}'.format(notification_id)) }}">See all text messages sent to this phone number</a>
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|