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
1
Merge Requests
1
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
Đường Sỹ Hoàng
VenJob
Commits
04a385a2
Commit
04a385a2
authored
Dec 26, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update user login form
parent
c3933c99
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
app/assets/stylesheets/custom.scss
+7
-5
app/views/devise/sessions/new.html.erb
+5
-1
app/views/devise/shared/_links.html.erb
+2
-2
config/routes.rb
+1
-3
No files found.
app/assets/stylesheets/custom.scss
View file @
04a385a2
...
...
@@ -66,7 +66,7 @@ h1, h2, h3, h4, h5, h6 {
.form-inline-city
{
padding
:
5px
;
}
A
}
.form-inline-industry
{
padding
:
5px
;
...
...
@@ -100,11 +100,13 @@ h1, h2, h3, h4, h5, h6 {
}
.login_btn
:hover
{
color
:
black
;
color
:
white
;
background-color
:
rgb
(
33
,
195
,
195
);
}
input
:focus
{
outline
:
0
0
0
0
!
important
;
box-shadow
:
0
0
0
0
!
important
;
.links
{
position
:
absolute
;
bottom
:
20px
;
margin-left
:
70px
;
top
:
300px
;
}
app/views/devise/sessions/new.html.erb
View file @
04a385a2
</br>
<div
class=
"container"
>
<div
class=
"d-flex justify-content-center h-100"
>
<div
class=
"card"
>
...
...
@@ -24,7 +26,7 @@
<%
end
%>
<div
class=
"actions"
>
<%=
f
.
submit
"Log in"
%>
<%=
f
.
submit
"Log in"
,
class:
"btn float-left login_btn"
%>
</div>
<%
end
%>
...
...
@@ -33,3 +35,5 @@
</div>
</div>
</div>
</br>
app/views/devise/shared/_links.html.erb
View file @
04a385a2
...
...
@@ -3,11 +3,11 @@
<%
end
%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
'registrations'
%>
<%=
link_to
"Register"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Register"
,
new_registration_path
(
resource_name
)
,
class:
"btn float-right login_btn"
%>
<br
/>
<%
end
%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
'passwords'
&&
controller_name
!=
'registrations'
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
,
class:
"d-flex justify-content-center links text-center"
%>
<br
/>
<%
end
%>
<%-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
'confirmations'
%>
...
...
config/routes.rb
View file @
04a385a2
...
...
@@ -5,8 +5,6 @@ Rails.application.routes.draw do
resource
:top
,
only: :index
devise_for
:users
as
:user
do
get
"login"
=>
"devise/sessions#new"
# post "login" => "devise/sessions#create"
# delete "logout" => "devise/sessions#destroy"
get
"login"
=>
"devise/sessions#new"
,
as: :login
end
end
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