{% from "components/checkbox.html" import checkbox %} {% from "components/radios.html" import radio, radios, radios_wrapper, conditional_radio_panel %} {% if 'caseworking' in current_service.permissions %}
{% call radios_wrapper(form.user_type, hide_legend=True) %} {% for option in form.user_type %}
{{ radio(option, option_hints={ 'admin': 'See dashboard and team members', 'caseworker': 'Send messages and see sent messages' }) }}
{% if option.data == 'admin' %} {% call conditional_radio_panel('admin') %}
Extra permissions {{ checkbox(form.send_messages) }} {{ checkbox(form.manage_templates) }} {{ checkbox(form.manage_service) }} {{ checkbox(form.manage_api_keys) }}
{% endcall %} {% endif %} {% endfor %} {% endcall %}
{% else %}
Permissions {{ checkbox(form.send_messages) }} {{ checkbox(form.manage_templates) }} {{ checkbox(form.manage_service) }} {{ checkbox(form.manage_api_keys) }}

All team members can see

{% 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 %}