2020-05-14 16:59:34 +01:00
|
|
|
{% from "components/checkbox.html" import checkbox, checkboxes_nested %}
|
2019-02-25 16:23:28 +00:00
|
|
|
{% from "components/radios.html" import radio, radios, conditional_radio_panel %}
|
2016-03-22 13:18:06 +00:00
|
|
|
|
2020-05-14 16:59:34 +01:00
|
|
|
<fieldset class="form-group">
|
|
|
|
|
<legend class="form-label heading-small">
|
|
|
|
|
Permissions
|
|
|
|
|
</legend>
|
|
|
|
|
<span class="hint">
|
|
|
|
|
All team members can see sent messages.
|
|
|
|
|
</span>
|
|
|
|
|
{% for field in form.permissions_fields %}
|
|
|
|
|
{{ checkbox(field) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</fieldset>
|
2017-11-01 15:36:27 +00:00
|
|
|
|
2019-04-02 15:23:46 +01:00
|
|
|
{% if form.folder_permissions.all_template_folders %}
|
2020-05-14 16:59:34 +01:00
|
|
|
{{ checkboxes_nested(form.folder_permissions, form.folder_permissions.children(), hide_legend=True, collapsible_opts={ 'field': 'folder' }) }}
|
2019-04-03 17:20:32 +01:00
|
|
|
{% elif user and user.platform_admin %}
|
|
|
|
|
<p class="bottom-gutter">
|
|
|
|
|
Platform admin users can access all template folders.
|
|
|
|
|
</p>
|
2019-02-25 16:23:28 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
2017-11-01 15:36:27 +00:00
|
|
|
{% if service_has_email_auth %}
|
2019-02-21 13:03:06 +00:00
|
|
|
{% if not mobile_number %}
|
2017-11-15 16:04:50 +00:00
|
|
|
{{ radios(
|
|
|
|
|
form.login_authentication,
|
|
|
|
|
disable=['sms_auth'],
|
2019-09-13 12:49:00 +01:00
|
|
|
option_hints={'sms_auth': 'Not available because this team member has not added a phone number to their profile'|safe}
|
2017-11-15 16:04:50 +00:00
|
|
|
) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ radios(form.login_authentication) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|