Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c5f08ad3
Commit
c5f08ad3
authored
Aug 14, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add uniform ldap group settings to admin and group admin
parent
4216e948
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
66 deletions
+43
-66
app/views/admin/groups/_form.html.haml
app/views/admin/groups/_form.html.haml
+1
-43
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+1
-23
app/views/groups/ldap_group_links/_form.html.haml
app/views/groups/ldap_group_links/_form.html.haml
+41
-0
No files found.
app/views/admin/groups/_form.html.haml
View file @
c5f08ad3
...
...
@@ -57,46 +57,4 @@
=
link_to
'Cancel'
,
admin_group_path
(
@group
),
class:
"btn btn-cancel"
-
if
@group
.
persisted?
%section
.ldap-group-links
%fieldset
%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: :delete
,
class:
'btn btn-danger btn-small'
do
=
fa_icon
(
'unlink'
,
text:
'unlink'
)
-
else
%p
No links yet
=
form_for
[
@group
,
@group
.
ldap_group_links
.
new
]
do
|
f
|
%fieldset
%legend
Add new LDAP link
%div
.form-holder
.form-group.clearfix
=
f
.
label
:ldap_cn
,
class:
'control-label'
do
LDAP Group cn
.col-sm-10
=
f
.
hidden_field
: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
}
.
.form-group.clearfix
=
f
.
label
:group_access
,
class:
'control-label'
do
LDAP Access
.col-sm-10
=
f
.
select
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
)
.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
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary"
=
link_to
'Cancel'
,
admin_group_path
(
@group
),
class:
"btn btn-cancel"
=
render
'groups/ldap_group_links/form'
,
group:
@group
app/views/groups/edit.html.haml
View file @
c5f08ad3
...
...
@@ -41,32 +41,10 @@
%hr
=
link_to
'Remove avatar'
,
group_avatar_path
(
@group
.
to_param
),
data:
{
confirm:
"Group avatar will be removed. Are you sure?"
},
method: :delete
,
class:
"btn btn-remove btn-small remove-avatar"
%fieldset
%legend
LDAP settings
.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
}
.
.form-group.clearfix
=
f
.
label
:ldap_access
,
class:
'control-label'
do
LDAP Access
.col-sm-10
=
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
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
=
render
'groups/ldap_group_links/form'
,
group:
@group
.panel.panel-danger
.panel-heading
Remove group
.panel-body
...
...
app/views/groups/ldap_group_links/_form.html.haml
0 → 100644
View file @
c5f08ad3
%section
.ldap-group-links
%fieldset
%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: :delete
,
class:
'btn btn-danger btn-small'
do
=
fa_icon
(
'unlink'
,
text:
'unlink'
)
-
else
%p
No links yet
=
form_for
[
group
,
group
.
ldap_group_links
.
new
]
do
|
f
|
%fieldset
%legend
Add new LDAP link
%div
.form-holder
.form-group.clearfix
=
f
.
label
:ldap_cn
,
class:
'control-label'
do
LDAP Group cn
.col-sm-10
=
f
.
hidden_field
: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
}
.
.form-group.clearfix
=
f
.
label
:group_access
,
class:
'control-label'
do
LDAP Access
.col-sm-10
=
f
.
select
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
)
.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
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment