Commit 04a385a2 by Đường Sỹ Hoàng

Update user login form

parent c3933c99
......@@ -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;
}
</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>
......@@ -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' %>
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment