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-04-02 18:08:50 +01:00
|
|
|
{{ form.permissions_field }}
|
2017-11-01 15:36:27 +00:00
|
|
|
|
2019-04-02 15:23:46 +01:00
|
|
|
{% if form.folder_permissions.all_template_folders %}
|
2020-04-02 18:08:50 +01:00
|
|
|
{{ form.folder_permissions }}
|
2019-04-03 17:20:32 +01:00
|
|
|
{% elif user and user.platform_admin %}
|
2023-08-25 11:49:13 -04:00
|
|
|
<p class="bottom-gutter usa-body">
|
2019-04-03 17:20:32 +01:00
|
|
|
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 %}
|
2023-08-14 16:59:38 -04: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 %}
|