Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
veNJOB
Overview
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanh Hung Pham
veNJOB
Commits
2a6d1d97
Commit
2a6d1d97
authored
Jul 05, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change layout
parent
ef114004
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
54 deletions
+40
-54
app/views/devise/passwords/edit.html.erb
+13
-15
app/views/devise/passwords/new.html.erb
+10
-9
app/views/devise/registrations/new.html.erb
+0
-2
app/views/devise/sessions/new.html.erb
+17
-12
app/views/devise/shared/_links.html.erb
+0
-16
No files found.
app/views/devise/passwords/edit.html.erb
View file @
2a6d1d97
<h2>
Change your password
</h2>
<%-
provide
(
:title
,
'Change password'
)
-%>
<div
class=
"well"
>
<h2>
Change your password
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
%>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
%>
<%=
devise_error_messages!
%>
<%=
devise_error_messages!
%>
<%=
f
.
hidden_field
:reset_password_token
%>
<%=
f
.
hidden_field
:reset_password_token
%>
<div
class=
"field"
>
<div
class=
"form-group"
>
<%=
f
.
label
:password
,
"New password"
%>
<br
/>
<%=
f
.
label
:password
,
"New password"
%>
<%
if
@minimum_password_length
%>
<%=
f
.
password_field
:password
,
autofocus:
true
,
autocomplete:
"off"
,
class:
'form-control'
%>
<em>
(
<%=
@minimum_password_length
%>
characters minimum)
</em><br
/>
<%
end
%>
<%=
f
.
password_field
:password
,
autofocus:
true
,
autocomplete:
"off"
%>
</div>
</div>
<div
class=
"field
"
>
<div
class=
"form-group
"
>
<%=
f
.
label
:password_confirmation
,
"Confirm new password"
%>
<br
/
>
<%=
f
.
label
:password_confirmation
,
"Confirm new password"
%
>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
%>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
,
class:
'form-control'
%>
</div>
</div>
<div
class=
"actions"
>
<div
class=
"actions"
>
<%=
f
.
submit
"Change my password"
%>
<%=
f
.
submit
"Change my password"
,
class:
'btn btn-primary'
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
<%=
render
"devise/shared/links"
%>
app/views/devise/passwords/new.html.erb
View file @
2a6d1d97
<h2>
Forgot your password?
</h2>
<%-
provide
(
:title
,
'Forgot password'
)
-%>
<div
class=
"well"
>
<h2>
Forgot your password?
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :post
})
do
|
f
|
%>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :post
})
do
|
f
|
%>
<%=
devise_error_messages!
%>
<%=
devise_error_messages!
%>
<div
class=
"field
"
>
<div
class=
"form-group
"
>
<%=
f
.
label
:email
%>
<br
/
>
<%=
f
.
label
:email
%
>
<%=
f
.
email_field
:email
,
autofocus:
true
%>
<%=
f
.
email_field
:email
,
autofocus:
true
,
class:
'form-control'
%>
</div>
</div>
<div
class=
"actions"
>
<div
class=
"actions"
>
<%=
f
.
submit
"Send me reset password instructions"
%>
<%=
f
.
submit
"Send"
,
class:
'btn btn-primary'
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
<%=
render
"devise/shared/links"
%>
app/views/devise/registrations/new.html.erb
View file @
2a6d1d97
...
@@ -25,6 +25,4 @@
...
@@ -25,6 +25,4 @@
<%=
f
.
submit
"Confirm your email"
,
class:
'btn btn-primary'
%>
<%=
f
.
submit
"Confirm your email"
,
class:
'btn btn-primary'
%>
<%
end
%>
<%
end
%>
<!--
<%=
render
"devise/shared/links"
%>
-->
</div>
</div>
app/views/devise/sessions/new.html.erb
View file @
2a6d1d97
<h2>
Log in
</h2>
<%-
provide
(
:title
,
'Login'
)
-%>
<div
class=
"well"
>
<h2>
Log in
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
session_path
(
resource_name
))
do
|
f
|
%>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
session_path
(
resource_name
))
do
|
f
|
%>
<div
class=
"field
"
>
<div
class=
"form-group
"
>
<%=
f
.
label
:email
%>
<br
/
>
<%=
f
.
label
:email
%
>
<%=
f
.
email_field
:email
,
autofocus:
true
%>
<%=
f
.
email_field
:email
,
autofocus:
true
,
class:
'form-control'
%>
</div>
</div>
<div
class=
"field
"
>
<div
class=
"form-group
"
>
<%=
f
.
label
:password
%>
<br
/>
<%=
f
.
label
:password
%>
<br
/>
<%=
f
.
password_field
:password
,
autocomplete:
"off"
%>
<%=
f
.
password_field
:password
,
autocomplete:
"off"
,
class:
'form-control'
%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
'passwords'
&&
controller_name
!=
'registrations'
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
</div>
</div>
<%
if
devise_mapping
.
rememberable?
-%>
<%
if
devise_mapping
.
rememberable?
-%>
<div
class=
"field
"
>
<div
class=
"form-group
"
>
<%=
f
.
check_box
:remember_me
%>
<%=
f
.
check_box
:remember_me
%>
<%=
f
.
label
:remember_me
%>
<%=
f
.
label
:remember_me
%>
</div>
</div>
<%
end
-%>
<%
end
-%>
<div
class=
"actions"
>
<div
class=
"actions"
>
<%=
f
.
submit
"Log in"
%>
<%=
f
.
submit
"Log in"
,
class:
'btn btn-primary'
%>
<%=
link_to
'Register'
,
new_user_registration_path
,
class:
'btn btn-primary'
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
<%=
render
"devise/shared/links"
%>
app/views/devise/shared/_links.html.erb
View file @
2a6d1d97
...
@@ -2,22 +2,6 @@
...
@@ -2,22 +2,6 @@
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
<%
end
-%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
'registrations'
%>
<%=
link_to
"Sign up"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
'passwords'
&&
controller_name
!=
'registrations'
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
'confirmations'
%>
<%=
link_to
"Didn't receive confirmation instructions?"
,
new_confirmation_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
lockable?
&&
resource_class
.
unlock_strategy_enabled?
(
:email
)
&&
controller_name
!=
'unlocks'
%>
<%=
link_to
"Didn't receive unlock instructions?"
,
new_unlock_path
(
resource_name
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
omniauthable?
%>
<%-
if
devise_mapping
.
omniauthable?
%>
<%-
resource_class
.
omniauth_providers
.
each
do
|
provider
|
%>
<%-
resource_class
.
omniauth_providers
.
each
do
|
provider
|
%>
<%=
link_to
"Sign in with
#{
OmniAuth
::
Utils
.
camelize
(
provider
)
}
"
,
omniauth_authorize_path
(
resource_name
,
provider
)
%>
<br
/>
<%=
link_to
"Sign in with
#{
OmniAuth
::
Utils
.
camelize
(
provider
)
}
"
,
omniauth_authorize_path
(
resource_name
,
provider
)
%>
<br
/>
...
...
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