Commit 3915b4b9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve group edit page for admins

Add autocomplete selectbox for ldap group name.
Fixed align of LDAP settigs block
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6221dc58
...@@ -26,19 +26,30 @@ ...@@ -26,19 +26,30 @@
%li It will change web url for access group and group projects. %li It will change web url for access group and group projects.
%li It will change the git path to repositories under this group. %li It will change the git path to repositories under this group.
%hr
.clearfix %fieldset
= f.label :ldap_cn do %legend LDAP group settings
LDAP Group cn %div.form-holder
.input = form_for @group do |f|
= f.text_field :ldap_cn, class: "xxlarge left" .form-group.clearfix
= f.label :ldap_cn, class: 'control-label' do
LDAP Group cn
.col-sm-10
= f.hidden_field :ldap_cn, placeholder: "Ex. QA group", class: "xxlarge ajax-ldap-groups-select input-mn-300"
.help-block
Synchronize #{@group.name}'s members with this LDAP group.
%br
If you select an LDAP group you do not belong to you will lose ownership of #{@group.name}.
.clearfix .form-group.clearfix
= f.label :ldap_access do = f.label :ldap_access, class: 'control-label' do
LDAP Access LDAP Access
.input .col-sm-10
= f.select :ldap_access, options_for_select(UsersGroup.group_access_roles, @group.ldap_access) = f.select :ldap_access, options_for_select(UsersGroup.group_access_roles, @group.ldap_access)
.help-block
Default, minimum permission level for LDAP group members of #{@group.name}.
%br
You can manage permission levels for individual group members in the Members tab.
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-primary" = f.submit 'Save changes', class: "btn btn-primary"
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
= f.label :ldap_cn, class: 'control-label' do = f.label :ldap_cn, class: 'control-label' do
LDAP Group cn LDAP Group cn
.col-sm-10 .col-sm-10
= f.hidden_field :ldap_cn, placeholder: "Ex. QA group", class: "xxlarge ajax-ldap-groups-select" = f.hidden_field :ldap_cn, placeholder: "Ex. QA group", class: "xxlarge ajax-ldap-groups-select input-mn-300"
.help-block .help-block
Synchronize #{@group.name}'s members with this LDAP group. Synchronize #{@group.name}'s members with this LDAP group.
%br %br
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment