% if can_users_have_auth_source? %>
<%= f.collection_select :ldap_auth_source_id,
LdapAuthSource.all,
:id,
:name,
{
label: :'activerecord.attributes.user.auth_source',
container_class: '-middle',
include_blank: t(:label_internal)
},
data: {
action: 'admin--users#toggleAuthenticationFields'
}
%>
<%= f.text_field :login, required: true, size: 25 %>
<% end %>