mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-27 11:19:21 -04:00
The page where you switch on the feature --- This content aims to describe: - the benefit of basic view – ‘make Notify quicker and simpler’ - who it benefits – ‘team members who only need to send messages’ - how it does it – ‘by hiding…’ - what it prevents users from being able to do or see – ‘everything except…’ - what it allows users to do – ‘send messages’, [see] ‘templates, a list of sent messages’ I’m still keen to mention sent messages here, as it feels weird not to mention it at all when it’s 1 of only 2 options in Basic view. I don’t think it’s as important to mention it on the Edit team member screen. I’ve specifically used ‘a list of sent messages’ rather than just ‘sent messages’, to make it seem less like a noun (new feature). The page where you choose whether someone has basic view --- Switches the focus from what you can see to what you can’t. Aims to be consistent with both: - the description of permissions in admin view - the language used to describe basic view in settings
66 lines
2.1 KiB
HTML
66 lines
2.1 KiB
HTML
{% from "components/checkbox.html" import checkbox %}
|
||
{% from "components/radios.html" import radio, radios, radios_wrapper, conditional_radio_panel %}
|
||
|
||
{% if 'caseworking' in current_service.permissions %}
|
||
<div class="conditional-radios" data-module='conditional-radios'>
|
||
{% call radios_wrapper(form.user_type, hide_legend=True) %}
|
||
{% for option in form.user_type %}
|
||
|
||
<div class="bottom-gutter-1-3">
|
||
{{ radio(option, option_hints={
|
||
'admin': 'Show dashboard, templates and team members',
|
||
'caseworker': 'Send messages from existing templates, hide other options'
|
||
}) }}
|
||
</div>
|
||
{% if option.data == 'admin' %}
|
||
{% call conditional_radio_panel('admin') %}
|
||
<fieldset class="form-group">
|
||
<legend class="form-label">
|
||
Extra permissions
|
||
</legend>
|
||
{{ checkbox(form.send_messages) }}
|
||
{{ checkbox(form.manage_templates) }}
|
||
{{ checkbox(form.manage_service) }}
|
||
{{ checkbox(form.manage_api_keys) }}
|
||
</fieldset>
|
||
{% endcall %}
|
||
{% endif %}
|
||
|
||
{% endfor %}
|
||
{% endcall %}
|
||
</div>
|
||
|
||
{% else %}
|
||
<fieldset class="form-group">
|
||
<legend class="form-label">
|
||
Permissions
|
||
</legend>
|
||
{{ checkbox(form.send_messages) }}
|
||
{{ checkbox(form.manage_templates) }}
|
||
{{ checkbox(form.manage_service) }}
|
||
{{ checkbox(form.manage_api_keys) }}
|
||
</fieldset>
|
||
<div class="bottom-gutter">
|
||
<p class="form-label">
|
||
All team members can see
|
||
</p>
|
||
<ul class="list list-bullet">
|
||
<li>templates</li>
|
||
<li>history of sent messages</li>
|
||
<li>who the other team members are</li>
|
||
</ul>
|
||
</div>
|
||
{% endif %}
|
||
|
||
{% if service_has_email_auth %}
|
||
{% if user_has_no_mobile_number %}
|
||
{{ radios(
|
||
form.login_authentication,
|
||
disable=['sms_auth'],
|
||
option_hints={'sms_auth': 'Not available because this team member hasn’t added a phone number to their profile'|safe}
|
||
) }}
|
||
{% else %}
|
||
{{ radios(form.login_authentication) }}
|
||
{% endif %}
|
||
{% endif %}
|