mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-22 03:15:07 -05:00
Since we have added a new, 5th permission the existing permissions should be relabelled so that the five make sense as a coherent set. We especially want to make sure that: - the labels work against the checkboxes and against the tick/crosses on the manage users page (a long time ago this page was layed out differently so didn’t have space for full labels) - there is no confusion between usage and reports This commit also: - re-adds a line about what all users can see (‘sent messages’) but continues to omit the additional bullet points about templates and team members (because we think this is clear enough from reading the permissions) - refactors the `Form` subclass so that the content and order of the permissions only have to be defined once - brings back the ‘permissions’ legend on the `fieldset`
28 lines
782 B
HTML
28 lines
782 B
HTML
{% from "components/checkbox.html" import checkbox %}
|
||
{% from "components/radios.html" import radio, radios, radios_wrapper, conditional_radio_panel %}
|
||
|
||
<fieldset class="form-group">
|
||
<legend class="form-label">
|
||
Permissions
|
||
</legend>
|
||
{% for field in form.permissions_fields %}
|
||
{{ checkbox(field) }}
|
||
{% endfor %}
|
||
</fieldset>
|
||
|
||
<p class="bottom-gutter">
|
||
All team members can see sent messages.
|
||
</p>
|
||
|
||
{% 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 %}
|