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
2e0a3734
Commit
2e0a3734
authored
Aug 07, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/proper_form_classes' of /home/git/repositories/gitlab/gitlabhq
parents
89d0d75c
b2152847
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
159 additions
and
177 deletions
+159
-177
forms.scss
app/assets/stylesheets/gitlab_bootstrap/forms.scss
+0
-18
edit.html.haml
app/views/admin/groups/edit.html.haml
+9
-9
new.html.haml
app/views/admin/groups/new.html.haml
+6
-6
index.html.haml
app/views/admin/hooks/index.html.haml
+2
-2
_form.html.haml
app/views/admin/users/_form.html.haml
+27
-27
_new_group_member.html.haml
app/views/groups/_new_group_member.html.haml
+4
-4
edit.html.haml
app/views/groups/edit.html.haml
+6
-6
new.html.haml
app/views/groups/new.html.haml
+8
-8
account.html.haml
app/views/profiles/account.html.haml
+9
-9
_form.html.haml
app/views/profiles/keys/_form.html.haml
+5
-5
new.html.haml
app/views/profiles/passwords/new.html.haml
+6
-6
_form.html.haml
app/views/projects/compare/_form.html.haml
+2
-2
_form.html.haml
app/views/projects/deploy_keys/_form.html.haml
+5
-5
edit.html.haml
app/views/projects/edit.html.haml
+11
-11
index.html.haml
app/views/projects/hooks/index.html.haml
+2
-2
_form.html.haml
app/views/projects/issues/_form.html.haml
+13
-13
_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+5
-5
_form.html.haml
app/views/projects/milestones/_form.html.haml
+1
-1
_head.html.haml
app/views/projects/network/_head.html.haml
+1
-1
new.html.haml
app/views/projects/new.html.haml
+12
-12
_form.html.haml
app/views/projects/snippets/_form.html.haml
+6
-6
_form.html.haml
app/views/projects/team_members/_form.html.haml
+5
-5
import.html.haml
app/views/projects/team_members/import.html.haml
+2
-2
_form.html.haml
app/views/projects/wikis/_form.html.haml
+4
-4
index.html.haml
app/views/public/projects/index.html.haml
+1
-1
show.html.haml
app/views/search/show.html.haml
+1
-1
_form.html.haml
app/views/snippets/_form.html.haml
+6
-6
No files found.
app/assets/stylesheets/gitlab_bootstrap/forms.scss
View file @
2e0a3734
form
{
@extend
.form-horizontal
;
.actions
{
@extend
.form-actions
;
}
.clearfix
{
@extend
.control-group
;
}
.input
{
@extend
.controls
;
}
label
{
@extend
.control-label
;
}
.xlarge
{
@extend
.input-xlarge
;
}
.xxlarge
{
@extend
.input-xxlarge
;
}
}
input
{
...
...
app/views/admin/groups/edit.html.haml
View file @
2e0a3734
...
...
@@ -4,22 +4,22 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:name
do
Group name is
.
input
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"xxlarge"
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"
input-
xxlarge"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:path
do
%span
.cred
Group path is
.
input
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"xxlarge danger"
.
controls
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"
input-
xxlarge danger"
%ul
.cred
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
...
...
app/views/admin/groups/new.html.haml
View file @
2e0a3734
...
...
@@ -4,15 +4,15 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
Group name is
.
input
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
.c
learfix
.group-description-holder
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.form-actions
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
...
...
app/views/admin/hooks/index.html.haml
View file @
2e0a3734
...
...
@@ -10,9 +10,9 @@
.alert.alert-error
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
%p
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:url
,
"URL:"
.
input
.
controls
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
=
f
.
submit
"Add System Hook"
,
class:
"btn btn-create"
...
...
app/views/admin/users/_form.html.haml
View file @
2e0a3734
...
...
@@ -8,28 +8,28 @@
%fieldset
%legend
Account
.c
learfix
.c
ontrol-group
=
f
.
label
:name
.
input
.
controls
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:username
.
input
.
controls
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:email
.
input
.
controls
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
-
if
@user
.
new_record?
%fieldset
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
.
controls
%strong
A temporary password will be generated and sent to user.
%br
...
...
@@ -37,33 +37,33 @@
-
else
%fieldset
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.c
learfix
.
controls
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.c
ontrol-group
=
f
.
label
:password_confirmation
.
input
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
.
controls
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
%fieldset
%legend
Access
.row
.span8
.c
learfix
.c
ontrol-group
=
f
.
label
:projects_limit
.
input
=
f
.
number_field
:projects_limit
.
controls
=
f
.
number_field
:projects_limit
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_group
.
input
=
f
.
check_box
:can_create_group
.
controls
=
f
.
check_box
:can_create_group
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_team
.
input
=
f
.
check_box
:can_create_team
.
controls
=
f
.
check_box
:can_create_team
.c
learfix
.c
ontrol-group
=
f
.
label
:admin
do
%strong
.cred
Administrator
.
input
=
f
.
check_box
:admin
.
controls
=
f
.
check_box
:admin
.span4
-
unless
@user
.
new_record?
.alert.alert-error
...
...
@@ -75,17 +75,17 @@
=
link_to
'Block User'
,
block_admin_user_path
(
@user
),
confirm:
'USER WILL BE BLOCKED! Are you sure?'
,
method: :put
,
class:
"btn btn-small btn-remove"
%fieldset
%legend
Profile
.c
learfix
.c
ontrol-group
=
f
.
label
:skype
.
input
=
f
.
text_field
:skype
.c
learfix
.
controls
=
f
.
text_field
:skype
.c
ontrol-group
=
f
.
label
:linkedin
.
input
=
f
.
text_field
:linkedin
.c
learfix
.
controls
=
f
.
text_field
:linkedin
.c
ontrol-group
=
f
.
label
:twitter
.
input
=
f
.
text_field
:twitter
.
controls
=
f
.
text_field
:twitter
.actions
.
form-
actions
-
if
@user
.
new_record?
=
f
.
submit
'Create user'
,
class:
"btn btn-create"
=
link_to
'Cancel'
,
admin_users_path
,
class:
"btn btn-cancel"
...
...
app/views/groups/_new_group_member.html.haml
View file @
2e0a3734
...
...
@@ -6,14 +6,14 @@
group
%p
1. Choose users you want in the group
.c
learfix
.c
ontrol-group
=
f
.
label
:user_ids
,
"People"
.
input
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
.
controls
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
%p
2. Set access level for them
.c
learfix
.c
ontrol-group
=
f
.
label
:group_access
,
"Group Access"
.
input
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
.
controls
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
.form-actions
=
f
.
submit
'Add users into group'
,
class:
"btn btn-create"
...
...
app/views/groups/edit.html.haml
View file @
2e0a3734
...
...
@@ -26,16 +26,16 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
Group name is
.
input
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.form-actions
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
...
...
app/views/groups/new.html.haml
View file @
2e0a3734
...
...
@@ -2,19 +2,19 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
Group name is
.
input
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.c
learfix
.
input
.c
ontrol-group
.
controls
%ul
%li
Group is kind of directory for several projects
%li
All created groups are private
...
...
app/views/profiles/account.html.haml
View file @
2e0a3734
...
...
@@ -27,15 +27,15 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
required:
true
.c
learfix
.
controls
=
f
.
password_field
:password
,
required:
true
.c
ontrol-group
=
f
.
label
:password_confirmation
.
input
.
controls
=
f
.
password_field
:password_confirmation
,
required:
true
.c
learfix
.
input
.c
ontrol-group
.
controls
=
f
.
submit
'Save password'
,
class:
"btn btn-save"
...
...
@@ -54,7 +54,7 @@
It can be used for atom feed or API
%p
.cgray
-
if
current_user
.
private_token
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"xxlarge large_text"
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"
input-
xxlarge large_text"
=
f
.
submit
'Reset'
,
confirm:
"Are you sure?"
,
class:
"btn btn-primary btn-build-token"
-
else
%span
You don`t have one yet. Click generate to fix it.
...
...
@@ -70,7 +70,7 @@
=
form_for
@user
,
url:
update_username_profile_path
,
method: :put
,
remote:
true
do
|
f
|
.padded
=
f
.
label
:username
.
input
.
controls
=
f
.
text_field
:username
,
required:
true
%span
.loading-gif.hide
=
image_tag
"ajax_loader.gif"
...
...
@@ -83,7 +83,7 @@
%ul
.cred
%li
It will change web url for personal projects.
%li
It will change the git path to repositories for personal projects.
.
input
.
controls
=
f
.
submit
'Save username'
,
class:
"btn btn-save"
-
if
gitlab_config
.
signup_enabled
...
...
app/views/profiles/keys/_form.html.haml
View file @
2e0a3734
...
...
@@ -6,18 +6,18 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.c
learfix
.
controls
=
f
.
text_field
:title
.c
ontrol-group
=
f
.
label
:key
.
input
.
controls
%p
.light
Paste your public key here. Read more about how generate it
#{
link_to
"here"
,
help_ssh_path
}
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
.actions
.
form-
actions
=
f
.
submit
'Add key'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
profile_keys_path
,
class:
"btn btn-cancel"
app/views/profiles/passwords/new.html.haml
View file @
2e0a3734
...
...
@@ -10,13 +10,13 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
required:
true
.c
learfix
.
controls
=
f
.
password_field
:password
,
required:
true
.c
ontrol-group
=
f
.
label
:password_confirmation
.
input
.
controls
=
f
.
password_field
:password_confirmation
,
required:
true
.c
learfix
.
input
.c
ontrol-group
.
controls
=
f
.
submit
'Set new password'
,
class:
"btn btn-create"
app/views/projects/compare/_form.html.haml
View file @
2e0a3734
...
...
@@ -14,9 +14,9 @@
.pull-left
-
if
params
[
:to
]
&&
params
[
:from
]
=
link_to
'switch'
,
{
from:
params
[
:to
],
to:
params
[
:from
]},
{
class:
'commits-compare-switch has_tooltip'
,
title:
'Switch base of comparison'
}
=
text_field_tag
:from
,
params
[
:from
],
placeholder:
"master"
,
class:
"xlarge input-xpadding"
=
text_field_tag
:from
,
params
[
:from
],
placeholder:
"master"
,
class:
"
input-
xlarge input-xpadding"
=
"..."
=
text_field_tag
:to
,
params
[
:to
],
placeholder:
"aa8b4ef"
,
class:
"xlarge input-xpadding"
=
text_field_tag
:to
,
params
[
:to
],
placeholder:
"aa8b4ef"
,
class:
"
input-
xlarge input-xpadding"
.pull-left
=
submit_tag
"Compare"
,
class:
"btn btn-create commits-compare-btn"
...
...
app/views/projects/deploy_keys/_form.html.haml
View file @
2e0a3734
...
...
@@ -6,18 +6,18 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.c
learfix
.
controls
=
f
.
text_field
:title
.c
ontrol-group
=
f
.
label
:key
.
input
.
controls
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
%p
.hint
Paste a machine public key here. Read more about how generate it
=
link_to
"here"
,
help_ssh_path
.actions
.
form-
actions
=
f
.
submit
'Create'
,
class:
"btn-create btn"
=
link_to
"Cancel"
,
project_deploy_keys_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/edit.html.haml
View file @
2e0a3734
...
...
@@ -8,24 +8,24 @@
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
Project description
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
.c
learfix
.c
ontrol-group
=
f
.
label
:default_branch
,
"Default Branch"
.
input
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
...
...
@@ -66,11 +66,11 @@
-
if
Project
.
issues_tracker
.
values
.
count
>
1
.control-group
=
f
.
label
:issues_tracker
,
"Issues tracker"
,
class:
'control-label'
.
input
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.
controls
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.c
learfix
.c
ontrol-group
=
f
.
label
:issues_tracker_id
,
"Project name or id in issues tracker"
,
class:
'control-label'
.
input
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.
controls
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.control-group
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
...
...
@@ -110,7 +110,7 @@
=
f
.
label
:namespace_id
do
%span
Namespace
.controls
.c
learfix
.c
ontrol-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%ul
%li
Be careful. Changing project namespace can have unintended side effects
...
...
@@ -130,7 +130,7 @@
=
f
.
label
:path
do
%span
Path
.controls
.c
learfix
.c
ontrol-group
=
f
.
text_field
:path
%ul
%li
Be careful. Rename of project repo can have unintended side effects
...
...
app/views/projects/hooks/index.html.haml
View file @
2e0a3734
...
...
@@ -11,9 +11,9 @@
.alert.alert-error
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
%p
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:url
,
"URL:"
.
input
.
controls
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
,
placeholder:
'http://example.com/trigger-ci.json'
=
f
.
submit
"Add Web Hook"
,
class:
"btn btn-create"
...
...
app/views/projects/issues/_form.html.haml
View file @
2e0a3734
...
...
@@ -8,18 +8,18 @@
%br
.ui-box.ui-box-show
.ui-box-head
.c
learfix
.c
ontrol-group
=
f
.
label
:title
do
%strong
=
"Subject *"
.
input
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"xxlarge js-gfm-input"
,
autofocus:
true
,
required:
true
.
controls
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"
input-
xxlarge js-gfm-input"
,
autofocus:
true
,
required:
true
.ui-box-body
.c
learfix
.c
ontrol-group
.issue_assignee.pull-left
=
f
.
label
:assignee_id
do
%i
.icon-user
Assign to
.
input
.
controls
.pull-left
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select a user"
},
{
class:
'chosen'
})
.pull-right
...
...
@@ -29,25 +29,25 @@
=
f
.
label
:milestone_id
do
%i
.icon-time
Milestone
.
input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.ui-box-bottom
.c
learfix
.c
ontrol-group
=
f
.
label
:label_list
do
%i
.icon-tag
Labels
.
input
=
f
.
text_field
:label_list
,
maxlength:
2000
,
class:
"xxlarge"
.
controls
=
f
.
text_field
:label_list
,
maxlength:
2000
,
class:
"
input-
xxlarge"
%p
.hint
Separate labels with commas.
.c
learfix
.c
ontrol-group
=
f
.
label
:description
,
"Details"
.
input
=
f
.
text_area
:description
,
class:
"xxlarge js-gfm-input"
,
rows:
14
.
controls
=
f
.
text_area
:description
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
14
%p
.hint
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
.actions
.
form-
actions
-
if
@issue
.
new_record?
=
f
.
submit
'Submit new issue'
,
class:
"btn btn-create"
-
else
...
...
app/views/projects/merge_requests/_form.html.haml
View file @
2e0a3734
...
...
@@ -31,21 +31,21 @@
%i
.icon-paper-clip
Details
.merge-request-form-info
.c
learfix
.c
ontrol-group
=
f
.
label
:title
do
%strong
=
"Title *"
.
input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.c
learfix
.
controls
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.c
ontrol-group
.left
=
f
.
label
:assignee_id
do
%i
.icon-user
Assign to
.
input
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.
controls
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.left
=
f
.
label
:milestone_id
do
%i
.icon-time
Milestone
.
input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.form-actions
...
...
app/views/projects/milestones/_form.html.haml
View file @
2e0a3734
...
...
@@ -26,7 +26,7 @@
.span6
.control-group
=
f
.
label
:due_date
,
"Due Date"
,
class:
"control-label"
.
input
=
f
.
hidden_field
:due_date
.
controls
=
f
.
hidden_field
:due_date
.controls
.datepicker
...
...
app/views/projects/network/_head.html.haml
View file @
2e0a3734
...
...
@@ -15,7 +15,7 @@
.control-group
=
label_tag
:search
,
"Looking for commit:"
,
class:
'control-label light'
.controls
=
text_field_tag
:q
,
@options
[
:q
],
placeholder:
"Input SHA"
,
class:
"search-input xlarge"
=
text_field_tag
:q
,
@options
[
:q
],
placeholder:
"Input SHA"
,
class:
"search-input
input-
xlarge"
=
button_tag
type:
'submit'
,
class:
'btn vtop'
do
%i
.icon-search
-
@options
.
each
do
|
key
,
value
|
...
...
app/views/projects/new.html.haml
View file @
2e0a3734
...
...
@@ -3,36 +3,36 @@
=
render
'projects/errors'
.project-edit-content
=
form_for
@project
,
remote:
true
do
|
f
|
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
Project name is
.
input
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
,
tabindex:
1
,
autofocus:
true
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"
input-
xxlarge"
,
tabindex:
1
,
autofocus:
true
-
if
current_user
.
can_select_namespace?
.c
learfix
.c
ontrol-group
=
f
.
label
:namespace_id
do
%span
Namespace
.
input
.
controls
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
.c
learfix
.
input
.c
ontrol-group
.
controls
=
link_to
"#"
,
class:
'appear-link'
do
%i
.icon-upload-alt
%span
Import existing repository?
.c
learfix
.appear-data.import-url-data
.c
ontrol-group
.appear-data.import-url-data
=
f
.
label
:import_url
do
%span
Import existing repo
.
input
.
controls
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
.light
URL must be cloneable
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
Description
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
%p
.padded
...
...
@@ -42,7 +42,7 @@
-
if
current_user
.
can_create_group?
.pull-right
.
input
.light
.
controls
.light
Need a group for several dependent projects?
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
Create a group
...
...
app/views/projects/snippets/_form.html.haml
View file @
2e0a3734
...
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
ontrol-group
=
f
.
label
"Lifetime"
.
input
=
f
.
select
:expires_at
,
lifetime_select_options
,
{},
{
class:
'chosen span2'
}
.c
learfix
.
controls
=
f
.
select
:expires_at
,
lifetime_select_options
,
{},
{
class:
'chosen span2'
}
.c
ontrol-group
.file-editor
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
...
...
app/views/projects/team_members/_form.html.haml
View file @
2e0a3734
...
...
@@ -9,16 +9,16 @@
%li
=
msg
%h6
1. Choose people you want in the team
.c
learfix
.c
ontrol-group
=
f
.
label
:user_ids
,
"People"
.
input
.
controls
=
users_select_tag
(
:user_ids
,
multiple:
true
)
%h6
2. Set access level for them
.c
learfix
.c
ontrol-group
=
f
.
label
:project_access
,
"Project Access"
.
input
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
,
@user_project_relation
.
project_access
),
class:
"project-access-select chosen"
.
controls
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
,
@user_project_relation
.
project_access
),
class:
"project-access-select chosen"
.actions
.
form-
actions
=
f
.
submit
'Add users'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/team_members/import.html.haml
View file @
2e0a3734
...
...
@@ -6,9 +6,9 @@
=
form_tag
apply_import_project_team_members_path
(
@project
),
method:
'post'
do
.padded
=
label_tag
:source_project_id
,
"Project"
.
input
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
authorized_projects
,
:id
,
:name_with_namespace
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.
controls
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
authorized_projects
,
:id
,
:name_with_namespace
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.actions
.
form-
actions
=
submit_tag
'Import project members'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/wikis/_form.html.haml
View file @
2e0a3734
...
...
@@ -15,7 +15,7 @@
=
f
.
select
:format
,
options_for_select
(
GollumWiki
::
MARKUPS
,
{
selected:
@wiki
.
format
}),
{},
class:
"pull-right input-medium"
=
f
.
label
:format
,
class:
"pull-right"
,
style:
"padding-right: 20px;"
.ui-box-body
.
input
.
controls
%span
.cgray
Wiki content is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
To link to a (new) page you can just type
...
...
@@ -24,11 +24,11 @@
.ui-box-bottom
=
f
.
label
:content
.
input
=
f
.
text_area
:content
,
class:
'span8 js-gfm-input'
.
controls
=
f
.
text_area
:content
,
class:
'span8 js-gfm-input'
.ui-box-bottom
=
f
.
label
:commit_message
.
input
=
f
.
text_field
:message
,
class:
'span8'
.actions
.
controls
=
f
.
text_field
:message
,
class:
'span8'
.
form-
actions
-
if
@wiki
&&
@wiki
.
persisted?
=
f
.
submit
'Save changes'
,
class:
"btn-save btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
@wiki
),
class:
"btn btn-cancel"
...
...
app/views/public/projects/index.html.haml
View file @
2e0a3734
...
...
@@ -7,7 +7,7 @@
.pull-right
=
form_tag
public_projects_path
,
method: :get
,
class:
'form-inline'
do
|
f
|
.search-holder
.
input
.
controls
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"gitlab-ci"
,
class:
"span3 search-text-input"
,
id:
"projects_search"
=
submit_tag
'Search'
,
class:
"btn btn-primary wide"
...
...
app/views/search/show.html.haml
View file @
2e0a3734
...
...
@@ -2,7 +2,7 @@
.search-holder
=
label_tag
:search
do
%span
Looking for
.
input
.
controls
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"input-xxlarge search-text-input"
,
id:
"dashboard_search"
=
hidden_field_tag
:project_id
,
params
[
:project_id
]
=
hidden_field_tag
:group_id
,
params
[
:group_id
]
...
...
app/views/snippets/_form.html.haml
View file @
2e0a3734
...
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
ontrol-group
=
f
.
label
"Private?"
.
input
=
f
.
check_box
:private
,
{
class:
''
}
.c
learfix
.
controls
=
f
.
check_box
:private
,
{
class:
''
}
.c
ontrol-group
.file-editor
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
...
...
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