Add client reference to API Integration / message log

- makes it clearer for users and easier to copy
- also updated text in preview message
This commit is contained in:
Ken Tsang
2018-03-16 14:41:07 +00:00
parent b2c199e609
commit f4a3ec028e
2 changed files with 6 additions and 4 deletions

View File

@@ -66,10 +66,12 @@
<div>
<dl id="notification-{{ notification.id }}" class="api-notifications-item-data bottom-gutter-1-2">
{% for key in [
'id', 'notification_type', 'created_at', 'updated_at', 'sent_at', 'status'
'id', 'client_reference', 'notification_type', 'created_at', 'updated_at', 'sent_at', 'status'
] %}
<dt>{{ key }}:</dt>
<dd class="api-notifications-item-data-item">{{ notification[key] }}</dd>
{% if notification[key] %}
<dt>{{ key }}:</dt>
<dd class="api-notifications-item-data-item">{{ notification[key] }}</dd>
{% endif %}
{% endfor %}
{% if notification['notification_type'] == 'letter' %}
<a href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=notification.id) }}">View letter</a>

View File

@@ -16,7 +16,7 @@
<p>
{% if is_precompiled_letter %}
Provided as PDF. Sent
Provided as PDF, sent
{% else %}
{% if help %}
{{ template.name }}