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
iv
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
21 deletions
+16
-21
app/views/admin/teams/projects/new.html.haml
app/views/admin/teams/projects/new.html.haml
+15
-20
features/steps/admin/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
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
%legend
Projects (
#{
@team
.
projects
.
count
}
)
=
form_tag
admin_team_projects_path
(
@team
),
id:
"assign_projects"
,
class:
"bulk_import"
,
method: :post
do
%table
#projects_list
%thead
%tr
%th
Project name
%th
Max access
%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
%h6
Choose greatest user acces for your team in this projects:
.clearfix
=
label_tag
:greatest_project_access
,
"Greatest Access"
.input
=
select_tag
:greatest_project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
.form-actions
=
submit_tag
'Add team to projects'
,
class:
"btn btn-create"
,
id: :assign_projects_to_team
features/steps/admin/admin_teams.rb
View file @
4daf68b5
...
...
@@ -85,7 +85,7 @@ class AdminTeams < Spinach::FeatureSteps
end
Then
'I should see empty projects table'
do
page
.
has_no_css?
(
"#projects_list"
).
must_equal
true
page
.
should
have_content
"Projects (0)"
end
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