BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4daf68b5
Commit
4daf68b5
authored
Jun 11, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style page for project assign to team. Fix test for admin:teams
parent
62a9bb5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
21 deletions
+16
-21
new.html.haml
app/views/admin/teams/projects/new.html.haml
+15
-20
admin_teams.rb
features/steps/admin/admin_teams.rb
+1
-1
No files found.
app/views/admin/teams/projects/new.html.haml
View file @
4daf68b5
%h3
.page_title
%h3
.page_title
Team:
#{
@team
.
name
}
Team:
#{
@team
.
name
}
%hr
=
form_tag
admin_team_projects_path
(
@team
),
id:
"assign_projects"
,
class:
"bulk_import"
,
method: :post
do
%h6
Choose Projects you want to assign:
.clearfix
=
label_tag
:project_ids
,
"Projects"
.input
=
select_tag
:project_ids
,
options_from_collection_for_select
(
@projects
,
:id
,
:name_with_namespace
),
multiple:
true
,
data:
{
placeholder:
'Select projects'
},
class:
'chosen span5'
%fieldset
%h6
Choose greatest user acces for your team in this projects:
%legend
Projects (
#{
@team
.
projects
.
count
}
)
.clearfix
=
form_tag
admin_team_projects_path
(
@team
),
id:
"assign_projects"
,
class:
"bulk_import"
,
method: :post
do
=
label_tag
:greatest_project_access
,
"Greatest Access"
%table
#projects_list
.input
%thead
=
select_tag
:greatest_project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
%tr
%th
Project name
.form-actions
%th
Max access
=
submit_tag
'Add team to projects'
,
class:
"btn btn-create"
,
id: :assign_projects_to_team
%th
-
@team
.
projects
.
each
do
|
project
|
%tr
.project
%td
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
%td
%span
=
@team
.
human_max_project_access
(
project
)
%td
%tr
%td
=
select_tag
:project_ids
,
options_from_collection_for_select
(
@projects
,
:id
,
:name_with_namespace
),
multiple:
true
,
data:
{
placeholder:
'Select projects'
},
class:
'chosen span5'
%td
=
select_tag
:greatest_project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
%td
=
submit_tag
'Add'
,
class:
"btn btn-primary"
,
id: :assign_projects_to_team
features/steps/admin/admin_teams.rb
View file @
4daf68b5
...
@@ -85,7 +85,7 @@ class AdminTeams < Spinach::FeatureSteps
...
@@ -85,7 +85,7 @@ class AdminTeams < Spinach::FeatureSteps
end
end
Then
'I should see empty projects table'
do
Then
'I should see empty projects table'
do
page
.
has_no_css?
(
"#projects_list"
).
must_equal
true
page
.
should
have_content
"Projects (0)"
end
end
When
'I select project "Shop" with max access "Reporter"'
do
When
'I select project "Shop" with max access "Reporter"'
do
...
...
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