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
95e6a5dc
Commit
95e6a5dc
authored
Jan 10, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix admin forms UI
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f1266765
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
55 deletions
+55
-55
app/views/admin/groups/edit.html.haml
app/views/admin/groups/edit.html.haml
+4
-4
app/views/admin/groups/new.html.haml
app/views/admin/groups/new.html.haml
+16
-12
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+35
-39
No files found.
app/views/admin/groups/edit.html.haml
View file @
95e6a5dc
%h3
.page-title
Edit Group
%h3
.page-title
Edit Group
%hr
%hr
=
form_for
[
:admin
,
@group
]
do
|
f
|
=
form_for
[
:admin
,
@group
]
,
html:
{
class:
"form-horizontal"
}
do
|
f
|
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.form-group.group_name_holder
.form-group.group_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
,
class:
'control-label'
do
Group name
Group name
.col-sm-10
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"form-control"
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"form-control"
.form-group.group-description-holder
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group.group_name_holder
.form-group.group_name_holder
=
f
.
label
:path
do
=
f
.
label
:path
,
class:
'control-label'
do
%span
.cred
Group path
%span
.cred
Group path
.col-sm-10
.col-sm-10
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"form-control danger"
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"form-control danger"
...
...
app/views/admin/groups/new.html.haml
View file @
95e6a5dc
%h3
.page-title
New Group
%h3
.page-title
New Group
%hr
%hr
=
form_for
[
:admin
,
@group
]
do
|
f
|
=
form_for
[
:admin
,
@group
]
,
html:
{
class:
'group-form form-horizontal'
}
do
|
f
|
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.form-group
.form-group
=
f
.
label
:name
do
=
f
.
label
:name
,
class:
'control-label'
do
Group name
Group name
.col-sm-10
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control left"
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"form-control"
.form-group.group-description-holder
.form-group.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"form-control js-gfm-input"
,
rows:
4
.form-group
.col-sm-2
.col-sm-10
%ul
%li
A group is a collection of several projects
%li
Groups are private by default
%li
Members of a group may only view projects they have permission to access
%li
Group project URLs are prefixed with the group namespace
%li
Existing projects may be moved into a group
.form-actions
.form-actions
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
%hr
.padded
%ul
%li
Group is kind of directory for several projects
%li
All created groups are private
%li
People within a group see only projects they have access to
%li
All projects of group will be stored in a group directory
%li
You will be able to move existing projects into group
app/views/admin/users/_form.html.haml
View file @
95e6a5dc
.user_new
.user_new
=
form_for
[
:admin
,
@user
]
do
|
f
|
=
form_for
[
:admin
,
@user
]
,
html:
{
class:
'form-horizontal'
}
do
|
f
|
-
if
@user
.
errors
.
any?
-
if
@user
.
errors
.
any?
#error_explanation
#error_explanation
%ul
.unstyled.alert.alert-danger
%ul
.unstyled.alert.alert-danger
...
@@ -9,26 +9,26 @@
...
@@ -9,26 +9,26 @@
%fieldset
%fieldset
%legend
Account
%legend
Account
.form-group
.form-group
=
f
.
label
:name
=
f
.
label
:name
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
,
class:
'form-control'
%span
.help-inline
* required
%span
.help-inline
* required
.form-group
.form-group
=
f
.
label
:username
=
f
.
label
:username
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
,
class:
'form-control'
%span
.help-inline
* required
%span
.help-inline
* required
.form-group
.form-group
=
f
.
label
:email
=
f
.
label
:email
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
,
class:
'form-control'
%span
.help-inline
* required
%span
.help-inline
* required
-
if
@user
.
new_record?
-
if
@user
.
new_record?
%fieldset
%fieldset
%legend
Password
%legend
Password
.form-group
.form-group
=
f
.
label
:password
=
f
.
label
:password
,
class:
'control-label'
.col-sm-10
.col-sm-10
%strong
%strong
A temporary password will be generated and sent to user.
A temporary password will be generated and sent to user.
...
@@ -38,29 +38,25 @@
...
@@ -38,29 +38,25 @@
%fieldset
%fieldset
%legend
Password
%legend
Password
.form-group
.form-group
=
f
.
label
:password
=
f
.
label
:password
,
class:
'control-label'
.col-sm-10
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.col-sm-10
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
,
class:
'form-control'
.form-group
.form-group
=
f
.
label
:password_confirmation
=
f
.
label
:password_confirmation
,
class:
'control-label'
.col-sm-10
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
.col-sm-10
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
,
class:
'form-control'
%fieldset
%fieldset
%legend
Access
%legend
Access
.row
.col-md-8
.form-group
.form-group
=
f
.
label
:projects_limit
=
f
.
label
:projects_limit
,
class:
'control-label'
.col-sm-10
=
f
.
number_field
:projects_limit
.col-sm-10
=
f
.
number_field
:projects_limit
,
class:
'form-control'
.form-group
.form-group
=
f
.
label
:can_create_group
=
f
.
label
:can_create_group
,
class:
'control-label'
.col-sm-10
=
f
.
check_box
:can_create_group
.col-sm-10
=
f
.
check_box
:can_create_group
.form-group
.form-group
=
f
.
label
:admin
do
=
f
.
label
:admin
,
class:
'control-label'
%strong
.cred
Administrator
.col-sm-10
=
f
.
check_box
:admin
.col-sm-10
=
f
.
check_box
:admin
.col-md-4
-
unless
@user
.
new_record?
-
unless
@user
.
new_record?
.alert.alert-danger
.alert.alert-danger
-
if
@user
.
blocked?
-
if
@user
.
blocked?
...
@@ -72,14 +68,14 @@
...
@@ -72,14 +68,14 @@
%fieldset
%fieldset
%legend
Profile
%legend
Profile
.form-group
.form-group
=
f
.
label
:skype
=
f
.
label
:skype
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:skype
.col-sm-10
=
f
.
text_field
:skype
,
class:
'form-control'
.form-group
.form-group
=
f
.
label
:linkedin
=
f
.
label
:linkedin
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:linkedin
.col-sm-10
=
f
.
text_field
:linkedin
,
class:
'form-control'
.form-group
.form-group
=
f
.
label
:twitter
=
f
.
label
:twitter
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:twitter
.col-sm-10
=
f
.
text_field
:twitter
,
class:
'form-control'
.form-actions
.form-actions
-
if
@user
.
new_record?
-
if
@user
.
new_record?
...
...
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