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
4c6591c9
Commit
4c6591c9
authored
Dec 27, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sign-up form retain fields after failed CAPTCHA test
parent
6f0ee5c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
_signup_box.html.haml
app/views/devise/shared/_signup_box.html.haml
+5
-4
No files found.
app/views/devise/shared/_signup_box.html.haml
View file @
4c6591c9
...
...
@@ -6,17 +6,18 @@
.login-heading
%h3
Create an account
.login-body
-
user
=
params
[
:user
].
present?
?
params
[:
user
]
:
{}
=
form_for
(
resource
,
as:
resource_name
,
url:
registration_path
(
resource_name
))
do
|
f
|
.devise-errors
=
devise_error_messages!
%div
=
f
.
text_field
:name
,
class:
"form-control top"
,
placeholder:
"Name"
,
required:
true
=
f
.
text_field
:name
,
class:
"form-control top"
,
value:
user
[
:name
],
placeholder:
"Name"
,
required:
true
%div
=
f
.
text_field
:username
,
class:
"form-control middle"
,
placeholder:
"Username"
,
required:
true
=
f
.
text_field
:username
,
class:
"form-control middle"
,
value:
user
[
:username
],
placeholder:
"Username"
,
required:
true
%div
=
f
.
email_field
:email
,
class:
"form-control middle"
,
placeholder:
"Email"
,
required:
true
=
f
.
email_field
:email
,
class:
"form-control middle"
,
value:
user
[
:email
],
placeholder:
"Email"
,
required:
true
.form-group.append-bottom-20
#password-strength
=
f
.
password_field
:password
,
class:
"form-control bottom"
,
id:
"user_password_sign_up"
,
placeholder:
"Password"
,
required:
true
=
f
.
password_field
:password
,
class:
"form-control bottom"
,
value:
user
[
:password
],
id:
"user_password_sign_up"
,
placeholder:
"Password"
,
required:
true
%div
-
if
Gitlab
.
config
.
recaptcha
.
enabled
=
recaptcha_tags
...
...
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