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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
c38a6fe1
Commit
c38a6fe1
authored
Jun 11, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group people management: replace selectbox with ajax one.
parent
ef935aba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+1
-1
app/views/groups/_new_group_member.html.haml
app/views/groups/_new_group_member.html.haml
+1
-1
app/views/groups/_new_member.html.haml
app/views/groups/_new_member.html.haml
+1
-1
No files found.
app/controllers/groups_controller.rb
View file @
c38a6fe1
...
...
@@ -74,7 +74,7 @@ class GroupsController < ApplicationController
end
def
team_members
@group
.
add_users_to_project_teams
(
params
[
:user_ids
],
params
[
:project_access
])
@group
.
add_users_to_project_teams
(
params
[
:user_ids
]
.
split
(
','
)
,
params
[
:project_access
])
redirect_to
people_group_path
(
@group
),
notice:
'Users were successfully added.'
end
...
...
app/views/groups/_new_group_member.html.haml
View file @
c38a6fe1
...
...
@@ -5,7 +5,7 @@
%h6
1. Choose people you want in the team
.clearfix
=
f
.
label
:user_ids
,
"People"
.input
=
select_tag
(
:user_ids
,
options_from_collection_for_select
(
User
.
active
.
alphabetically
,
:id
,
:name
),
{
data:
{
placeholder:
"Select users"
},
class:
"chosen xxlarge"
,
multiple:
true
}
)
.input
=
users_select_tag
(
:user_ids
,
multiple:
true
)
%h6
2. Set access level for them
.clearfix
...
...
app/views/groups/_new_member.html.haml
View file @
c38a6fe1
...
...
@@ -5,7 +5,7 @@
%h6
1. Choose people you want in the team
.clearfix
=
f
.
label
:user_ids
,
"People"
.input
=
select_tag
(
:user_ids
,
options_from_collection_for_select
(
User
.
not_in_project
(
@project
).
alphabetically
,
:id
,
:name
),
{
data:
{
placeholder:
"Select users"
},
class:
"chosen xxlarge"
,
multiple:
true
}
)
.input
=
users_select_tag
(
:user_ids
,
multiple:
true
)
%h6
2. Set access level for them
.clearfix
...
...
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