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
dbb81abb
Commit
dbb81abb
authored
Jan 03, 2020
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First commit
parent
b5e8f81b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
14 deletions
+25
-14
app/views/devise/passwords/edit.html.erb
+17
-7
app/views/devise/passwords/new.html.erb
+2
-1
app/views/layouts/_header.html.erb
+3
-1
config/environments/development.rb
+2
-5
config/routes.rb
+1
-0
No files found.
app/views/devise/passwords/edit.html.erb
View file @
dbb81abb
<h2>
Change your password
</h2>
<div
class=
"container"
>
<div
class=
"d-flex justify-content-center h-100"
>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
%>
<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
%>
<%=
render
"devise/shared/error_messages"
,
resource:
resource
%>
<%=
f
.
hidden_field
:reset_password_token
%>
<%=
f
.
hidden_field
:reset_password_token
%>
...
@@ -17,9 +21,15 @@
...
@@ -17,9 +21,15 @@
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"new-password"
%>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"new-password"
%>
</div>
</div>
<div
class=
"actions"
>
</br>
<%=
f
.
submit
"Change my password"
%>
<div
class=
"actions text-center"
>
<%=
f
.
submit
"Change my password"
,
class:
"btn-primary"
%>
</div>
<%
end
%>
</div>
</div>
</div>
<
%
end
%
>
<
/div
>
<
%=
render
"devise/shared/links"
%
>
<
/br
>
app/views/devise/passwords/new.html.erb
View file @
dbb81abb
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
<%=
f
.
email_field
:email
,
autofocus:
true
,
autocomplete:
"email"
%>
<%=
f
.
email_field
:email
,
autofocus:
true
,
autocomplete:
"email"
%>
</div>
</div>
</br>
<div
class=
"actions text-center"
>
<div
class=
"actions text-center"
>
<%=
f
.
submit
"Confirm your email"
%>
<%=
f
.
submit
"Confirm your email"
,
class:
"btn-primary"
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
...
...
app/views/layouts/_header.html.erb
View file @
dbb81abb
<header
class=
"navbar navbar-fixed-top navbar-inverse"
>
<header
class=
"navbar navbar-fixed-top navbar-inverse"
>
<div
class=
"container"
>
<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"
>
<nav
class=
"navbar navbar-light bg-light"
>
<%
if
user_signed_in?
%>
<%
if
user_signed_in?
%>
<%=
link_to
"Log out"
,
destroy_user_session_path
,
method: :delete
,
class:
"btn btn-outline-success"
%>
<%=
link_to
"Log out"
,
destroy_user_session_path
,
method: :delete
,
class:
"btn btn-outline-success"
%>
...
...
config/environments/development.rb
View file @
dbb81abb
...
@@ -56,14 +56,11 @@ Rails.application.configure do
...
@@ -56,14 +56,11 @@ Rails.application.configure do
# Raises error for missing translations.
# Raises error for missing translations.
# config.action_view.raise_on_missing_translations = true
# 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
.
file_watcher
=
ActiveSupport
::
EventedFileUpdateChecker
config
.
action_mailer
.
raise_delivery_errors
=
true
config
.
action_mailer
.
delivery_method
=
:smtp
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
.
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.
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
end
end
config/routes.rb
View file @
dbb81abb
...
@@ -12,5 +12,6 @@ Rails.application.routes.draw do
...
@@ -12,5 +12,6 @@ Rails.application.routes.draw do
put
"registration.user/"
,
to:
"devise/registrations#update"
put
"registration.user/"
,
to:
"devise/registrations#update"
get
"my/info"
,
to:
"devise/registrations#edit"
get
"my/info"
,
to:
"devise/registrations#edit"
get
"my/"
,
to:
"users#show"
get
"my/"
,
to:
"users#show"
get
"forgot_password"
,
to:
"devise/passwords#edit"
end
end
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