mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Rename ‘Send a message’ to ‘Templates’ in basic view
From Karl: > Templates – this should be consistent with Admin view. Users may > switch from Basic to Admin view (or vice versa), they will also > interact with users who have a different view or permissions to them. > Neither should have to learn new interfaces and language if possible. > ‘Send a message’ was a nice, active label – but Notify options aren’t > usually actions. If we’re going to change this we should be consistent > across both Admin and Basic views. > For the same reason, I have rejected ‘see’, ‘search’ and ‘view sent > messages’. It will be interesting to see in user testing whether users > read ‘sent messages’ as ‘send messages’.
This commit is contained in:
@@ -140,14 +140,8 @@ def choose_template(service_id, template_type='all'):
|
||||
)
|
||||
]
|
||||
|
||||
if current_user.has_permissions('view_activity'):
|
||||
page_title = 'Templates'
|
||||
else:
|
||||
page_title = 'Choose a template'
|
||||
|
||||
return render_template(
|
||||
'views/templates/choose.html',
|
||||
page_title=page_title,
|
||||
templates=templates_on_page,
|
||||
show_search_box=(len(templates_on_page) > 7),
|
||||
show_template_nav=has_multiple_template_types and (len(templates) > 2),
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
{% else %}
|
||||
<nav class="navigation">
|
||||
<ul>
|
||||
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ casework_navigation.is_selected('send-one-off') }}>Send a message</a></li>
|
||||
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ casework_navigation.is_selected('send-one-off') }}>Templates</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('.view_notifications', service_id=current_service.id, status='sending,delivered,failed') }}" {{ casework_navigation.is_selected('sent-messages') }}>Sent messages</a></li>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
{% set page_title = 'Templates' %}
|
||||
|
||||
{% block service_page_title %}
|
||||
{{ page_title }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user