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
Boxiang Sun
gitlab-ce
Commits
72ab3b17
Commit
72ab3b17
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use js-requires-input where appropriate
parent
2aeb26bd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
14 deletions
+10
-14
app/views/profiles/keys/_form.html.haml
app/views/profiles/keys/_form.html.haml
+3
-4
app/views/projects/blob/_new_dir.html.haml
app/views/projects/blob/_new_dir.html.haml
+1
-2
app/views/projects/deploy_keys/_form.html.haml
app/views/projects/deploy_keys/_form.html.haml
+3
-4
app/views/projects/tags/new.html.haml
app/views/projects/tags/new.html.haml
+1
-2
app/views/shared/_new_commit_form.html.haml
app/views/shared/_new_commit_form.html.haml
+1
-1
app/views/shared/snippets/_form.html.haml
app/views/shared/snippets/_form.html.haml
+1
-1
No files found.
app/views/profiles/keys/_form.html.haml
View file @
72ab3b17
%div
=
form_for
[
:profile
,
@key
],
html:
{
class:
'form-horizontal'
}
do
|
f
|
=
form_for
[
:profile
,
@key
],
html:
{
class:
'form-horizontal
js-requires-input
'
}
do
|
f
|
-
if
@key
.
errors
.
any?
.alert.alert-danger
%ul
...
...
@@ -9,12 +9,11 @@
.form-group
=
f
.
label
:key
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:key
,
class:
"form-control"
,
rows:
8
=
f
.
text_area
:key
,
class:
"form-control"
,
rows:
8
,
autofocus:
true
,
required:
true
.form-group
=
f
.
label
:title
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:title
,
class:
"form-control"
.col-sm-10
=
f
.
text_field
:title
,
class:
"form-control"
,
required:
true
.form-actions
=
f
.
submit
'Add key'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
profile_keys_path
,
class:
"btn btn-cancel"
app/views/projects/blob/_new_dir.html.haml
View file @
72ab3b17
...
...
@@ -5,7 +5,7 @@
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
Create New Directory
.modal-body
=
form_tag
namespace_project_create_dir_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
remote:
false
,
class:
'form-horizontal js-create-dir-form'
do
=
form_tag
namespace_project_create_dir_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
remote:
false
,
class:
'form-horizontal js-create-dir-form
js-requires-input
'
do
.form-group
=
label_tag
:dir_name
,
'Directory name'
,
class:
'control-label'
.col-sm-10
...
...
@@ -18,5 +18,4 @@
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
:javascript
disableButtonIfAnyEmptyField
(
$
(
"
.js-create-dir-form
"
),
"
.form-control
"
,
"
.btn-create
"
);
new
NewCommitForm
(
$
(
'
.js-create-dir-form
'
))
app/views/projects/deploy_keys/_form.html.haml
View file @
72ab3b17
%div
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@key
],
url:
namespace_project_deploy_keys_path
,
html:
{
class:
'deploy-key-form form-horizontal'
}
do
|
f
|
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@key
],
url:
namespace_project_deploy_keys_path
,
html:
{
class:
'deploy-key-form form-horizontal
js-requires-input
'
}
do
|
f
|
-
if
@key
.
errors
.
any?
.alert.alert-danger
%ul
...
...
@@ -8,16 +8,15 @@
.form-group
=
f
.
label
:title
,
class:
"control-label"
.col-sm-10
=
f
.
text_field
:title
,
class:
'form-control'
.col-sm-10
=
f
.
text_field
:title
,
class:
'form-control'
,
autofocus:
true
,
required:
true
.form-group
=
f
.
label
:key
,
class:
"control-label"
.col-sm-10
%p
.light
Paste a machine public key here. Read more about how to generate it
=
link_to
"here"
,
help_page_path
(
"ssh"
,
"README"
)
=
f
.
text_area
:key
,
class:
"form-control thin_area"
,
rows:
5
=
f
.
text_area
:key
,
class:
"form-control thin_area"
,
rows:
5
,
required:
true
.form-actions
=
f
.
submit
'Create Deploy Key'
,
class:
"btn-create btn"
=
link_to
"Cancel"
,
namespace_project_deploy_keys_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-cancel"
app/views/projects/tags/new.html.haml
View file @
72ab3b17
...
...
@@ -10,7 +10,7 @@
New Tag
%hr
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal gfm-form tag-form"
do
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal gfm-form tag-form
js-requires-input
"
do
.form-group
=
label_tag
:tag_name
,
nil
,
class:
'control-label'
.col-sm-10
...
...
@@ -38,7 +38,6 @@
=
link_to
'Cancel'
,
namespace_project_tags_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-cancel'
:javascript
disableButtonIfAnyEmptyField
(
$
(
"
#new-tag-form
"
),
"
.form-control
"
,
"
.btn-create
"
);
var
availableTags
=
#{
@project
.
repository
.
ref_names
.
to_json
}
;
$
(
"
#ref
"
).
autocomplete
({
...
...
app/views/shared/_new_commit_form.html.haml
View file @
72ab3b17
...
...
@@ -4,7 +4,7 @@
.form-group.branch
=
label_tag
'new_branch'
,
'Target branch'
,
class:
'control-label'
.col-sm-10
=
text_field_tag
'new_branch'
,
@new_branch
||
@ref
,
class:
"form-control js-new-branch"
=
text_field_tag
'new_branch'
,
@new_branch
||
@ref
,
required:
true
,
class:
"form-control js-new-branch"
.form-group.js-create-merge-request-form-group
.col-sm-offset-2.col-sm-10
...
...
app/views/shared/snippets/_form.html.haml
View file @
72ab3b17
.snippet-form-holder
=
form_for
@snippet
,
url:
url
,
html:
{
class:
"form-horizontal snippet-form"
}
do
|
f
|
=
form_for
@snippet
,
url:
url
,
html:
{
class:
"form-horizontal snippet-form
js-requires-input
"
}
do
|
f
|
-
if
@snippet
.
errors
.
any?
.alert.alert-danger
%ul
...
...
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