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
Jérome Perrin
gitlab-ce
Commits
da98cebc
Commit
da98cebc
authored
Jun 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4314 from Undev/feature/redesign_forms
Switch form from table to plain form without member list
parents
a59fe739
815c186b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
28 deletions
+26
-28
app/views/admin/teams/members/new.html.haml
app/views/admin/teams/members/new.html.haml
+26
-28
No files found.
app/views/admin/teams/members/new.html.haml
View file @
da98cebc
%h3
.page_title
%h3
.page_title
Team:
#{
@team
.
name
}
New members for
=
link_to
@team
.
name
,
admin_team_path
(
@team
)
%fieldset
team
%legend
Members (
#{
@team
.
members
.
count
}
)
%hr
=
form_tag
admin_team_members_path
(
@team
),
id:
"team_members"
,
class:
"bulk_import"
,
method: :post
do
=
form_tag
admin_team_members_path
(
@team
),
id:
"team_members"
,
class:
"bulk_import"
,
method: :post
do
%table
#members_list
-
if
@team
.
errors
.
any?
%thead
.alert.alert-error
%tr
%span
=
@team
.
errors
.
full_messages
.
first
%th
User name
.clearfix
%th
Default project access
=
label_tag
:user_ids
do
%th
Team access
Users to add
%th
.input
-
@team
.
members
.
each
do
|
member
|
=
select_tag
:user_ids
,
options_from_collection_for_select
(
@users
,
:id
,
:name_with_username
),
multiple:
true
,
data:
{
placeholder:
'Select users'
},
class:
'chosen span5'
%tr
.member
.clearfix.group-description-holder
%td
=
label_tag
:default_project_access
do
=
link_to
[
:admin
,
member
]
do
Default permission in projects
=
member
.
name
.input
%small
=
"(
#{
member
.
email
}
)"
=
select_tag
:default_project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
%td
=
@team
.
human_default_projects_access
(
member
)
.clearfix
%td
=
@team
.
admin?
(
member
)
?
"Admin"
:
"Member"
=
label_tag
:group_admin
do
%td
Is team admin
%tr
.input
%td
=
select_tag
:user_ids
,
options_from_collection_for_select
(
@users
,
:id
,
:name_with_username
),
multiple:
true
,
data:
{
placeholder:
'Select users'
},
class:
'chosen span5'
=
check_box_tag
:group_admin
%td
=
select_tag
:default_project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
.clearfix.form-actions
%td
=
submit_tag
'Add users into team'
,
class:
"btn btn-primary"
,
id: :add_members_to_team
%span
=
check_box_tag
:group_admin
=
link_to
'Cancel'
,
:back
,
class:
"btn"
%span
Admin?
%td
=
submit_tag
'Add'
,
class:
"btn btn-primary"
,
id: :add_members_to_team
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