app/views/ops/_ldap_auth_users.html.haml
#ldap_user_div
- unless @edit[:ldap_groups_by_user].empty?
%form.form-horizontal
.form-group
%label.col-md-2.control-label
= _("LDAP Groups for User")
.col-md-8
- url = url_for_only_path(:action => 'rbac_group_field_changed', :id => (@edit[:group_id] || "new"))
- options = options_for_select(["<Choose>"] + @edit[:ldap_groups_by_user].uniq.sort, @edit[:selected_ldap_groups_by_user])
- attributes = {"data-miq_sparkle_on" => true,
"data-miq_sparkle_off" => true,
:class => "selectpicker",
"data-live-search" => "true",}
= select_tag('ldap_groups_user', options, attributes) |
:javascript
miqInitSelectPicker();
miqSelectPickerEvent('ldap_groups_user', "#{url}")