mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
Make sent international status display on 2 lines
Otherwise it wraps awkwardly
This commit is contained in:
@@ -479,7 +479,10 @@ def format_notification_status_as_field_status(status, notification_type):
|
|||||||
'virus-scan-failed': 'error',
|
'virus-scan-failed': 'error',
|
||||||
'returned-letter': None,
|
'returned-letter': None,
|
||||||
'cancelled': 'error',
|
'cancelled': 'error',
|
||||||
}
|
},
|
||||||
|
'sms': {
|
||||||
|
'sent': 'sent-international'
|
||||||
|
},
|
||||||
}.get(
|
}.get(
|
||||||
notification_type,
|
notification_type,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -225,6 +225,16 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-sent-international {
|
||||||
|
|
||||||
|
.status-hint {
|
||||||
|
display: block;
|
||||||
|
font-weight: normal;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
&-yes,
|
&-yes,
|
||||||
&-no {
|
&-no {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
{% macro notification_status_field(notification) %}
|
{% macro notification_status_field(notification) %}
|
||||||
|
|
||||||
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'pending-virus-check', 'sending', 'sent', 'delivered', 'returned-letter', 'accepted', 'received'] %}
|
{% set displayed_on_single_line = notification.status in ['created', 'pending', 'pending-virus-check', 'sending', 'delivered', 'returned-letter', 'accepted', 'received'] %}
|
||||||
|
|
||||||
{% if not notification %}
|
{% if not notification %}
|
||||||
{% call field(align='right') %}{% endcall %}
|
{% call field(align='right') %}{% endcall %}
|
||||||
|
|||||||
Reference in New Issue
Block a user