{% 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': 'Show dashboard, templates and team members',
'caseworker': 'Hide dashboard and other options, send messages from existing templates'
}) }}
{% 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 %}