Commit dbb81abb by Đường Sỹ Hoàng

First commit

parent b5e8f81b
<h2>Change your password</h2>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<div class="container">
<div class="d-flex justify-content-center h-100">
<div class="card">
<div class="card-header text-center">
<h2>Change your password</h2>
</div>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= f.hidden_field :reset_password_token %>
......@@ -17,9 +21,15 @@
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
</div>
<div class="actions">
<%= f.submit "Change my password" %>
</br>
<div class="actions text-center">
<%= f.submit "Change my password", class: "btn-primary" %>
</div>
<% end %>
</div>
</div>
<% end %>
</div>
<%= render "devise/shared/links" %>
</br>
......@@ -14,8 +14,9 @@
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
</div>
</br>
<div class="actions text-center">
<%= f.submit "Confirm your email" %>
<%= f.submit "Confirm your email", class: "btn-primary" %>
</div>
<% end %>
</div>
......
<header class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<%= link_to image_tag("zigexn_logo.png", id: "logo", alt: "Venjob logo") %>
<%= link_to root_path do %>
<%= image_tag("zigexn_logo.png", id:"logo", alt: "Venjob logo") %>
<% end %>
<nav class="navbar navbar-light bg-light">
<% if user_signed_in? %>
<%= link_to "Log out", destroy_user_session_path, method: :delete, class: "btn btn-outline-success" %>
......
......@@ -56,14 +56,11 @@ Rails.application.configure do
# Raises error for missing translations.
# config.action_view.raise_on_missing_translations = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
# Use this on the cloud IDE.
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.smtp_settings = { address: '127.0.0.1', port: 1025 }
config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 }
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
end
......@@ -12,5 +12,6 @@ Rails.application.routes.draw do
put "registration.user/", to: "devise/registrations#update"
get "my/info", to: "devise/registrations#edit"
get "my/", to: "users#show"
get "forgot_password", to: "devise/passwords#edit"
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