mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-24 17:31:19 -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',
|
||||
'returned-letter': None,
|
||||
'cancelled': 'error',
|
||||
}
|
||||
},
|
||||
'sms': {
|
||||
'sent': 'sent-international'
|
||||
},
|
||||
}.get(
|
||||
notification_type,
|
||||
{
|
||||
|
||||
@@ -225,6 +225,16 @@
|
||||
|
||||
}
|
||||
|
||||
&-sent-international {
|
||||
|
||||
.status-hint {
|
||||
display: block;
|
||||
font-weight: normal;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-yes,
|
||||
&-no {
|
||||
display: block;
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
{% 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 %}
|
||||
{% call field(align='right') %}{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user