Preview content as hint for broadcast templates

Broadcast services only have broadcast templates. But we show the
template type under the name of the template. This is redundant. It
would be better to preview the content of the template instead.

This then makes the templates page consistent with the dashboard.

Depends on:
- [ ] https://github.com/alphagov/notifications-api/pull/2996
This commit is contained in:
Chris Hill-Scott
2020-10-13 17:37:38 +01:00
parent 8dae4f771a
commit 5c9a886edc
3 changed files with 84 additions and 7 deletions

View File

@@ -409,7 +409,7 @@ def valid_phone_number(phone_number):
def format_notification_type(notification_type):
return {
'email': 'Email',
'sms': 'SMS',
'sms': 'Text message',
'letter': 'Letter'
}[notification_type]