Add basic layout for multiple ldap groups (admin)

parent 234ae2e9
...@@ -52,8 +52,24 @@ ...@@ -52,8 +52,24 @@
%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.
%section.ldap-group-links
%fieldset %fieldset
%legend LDAP group settings %legend Current LDAP links
- if @group.ldap_group_links.any?
%ul.bordered-list
- @group.ldap_group_links.each do |ldap_group_link|
%li
%h4
= ldap_group_link.cn
%small.light== as #{ldap_group_link.human_access}
.pull-right
= link_to group_ldap_group_link_path(@group, ldap_group_link), method: :destroy, class: 'btn btn-danger btn-small' do
= fa_icon('unlink', text: 'unlink')
- else
%p No links yet
%fieldset
%legend Add new ldap group link
%div.form-holder %div.form-holder
.form-group.clearfix .form-group.clearfix
= f.label :ldap_cn, class: 'control-label' do = f.label :ldap_cn, class: 'control-label' do
......
...@@ -166,7 +166,7 @@ Gitlab::Application.routes.draw do ...@@ -166,7 +166,7 @@ Gitlab::Application.routes.draw do
end end
resources :users_groups, only: [:create, :update, :destroy] resources :users_groups, only: [:create, :update, :destroy]
resources :ldap_group_links, only: [:create, :destroy]
scope module: :groups do scope module: :groups do
resource :avatar, only: [:destroy] resource :avatar, only: [:destroy]
resources :milestones resources :milestones
......
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