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
0
Merge Requests
0
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
Nguyen Ngoc Nghia
VeNJOB
Commits
9949413a
Commit
9949413a
authored
Dec 25, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add view for job apply
parent
039891b2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
13 deletions
+25
-13
app/assets/stylesheets/custom.scss
+0
-6
app/controllers/jobs_controller.rb
+6
-0
app/views/jobs/apply.html.erb
+7
-0
app/views/jobs/show.html.erb
+9
-7
app/views/layouts/application.html.erb
+1
-0
app/views/tops/index.html.erb
+1
-0
config/routes.rb
+1
-0
No files found.
app/assets/stylesheets/custom.scss
View file @
9949413a
...
...
@@ -151,12 +151,6 @@ dl, dt, dd {
line-height
:
normal
;
}
.breadcrumb
{
font-weight
:
lighter
;
font-size
:
12px
;
margin-bottom
:
15px
;
}
.job_detail_button
{
margin
:
10px
;
padding
:
5px
;
...
...
app/controllers/jobs_controller.rb
View file @
9949413a
...
...
@@ -16,4 +16,10 @@ class JobsController < ApplicationController
def
show
@job
=
Job
.
find
(
params
[
:id
]).
decorate
end
def
apply
redirect_to
new_user_session_path
unless
user_signed_in?
redirect_to
jobs_path
if
params
[
:job_id
].
blank?
@job_id
=
params
[
:job_id
]
end
end
app/views/jobs/apply.html.erb
0 → 100644
View file @
9949413a
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
New
</li>
<li
class=
"breadcrumb-item"
>
Confirmation
</li>
<li
class=
"breadcrumb-item"
>
Finish
</li>
</ol>
</nav>
app/views/jobs/show.html.erb
View file @
9949413a
<div
class=
"breadcrumb"
>
<%=
link_to
"Top"
,
root_path
%>
>
<%=
link_to
"City"
,
cities_path
%>
>
<%=
link_to
"Industry"
,
industries_path
%>
>
<%=
@job
.
title
%>
</div>
<nav
aria-label=
"breadcrumb mb-4"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Top"
,
root_path
%>
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"City"
,
cities_path
%>
</li>
<li
class=
"breadcrumb-item"
>
<%=
link_to
"Industry"
,
industries_path
%>
</li>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
<%=
@job
.
title
%>
</li>
</ol>
</nav>
<div
class=
"box"
>
<h1>
<%=
@job
.
title
%>
...
...
@@ -30,5 +32,5 @@
<div
class=
"job_detail_button"
>
<%=
link_to
"Favorite"
,
"#"
,
class:
"btn btn-primary float-right"
%>
<%=
link_to
"Apply"
,
"#"
,
class:
"btn btn-primary float-right mx-3"
%>
<%=
link_to
"Apply"
,
apply_path
(
job_id:
@job
.
id
)
,
class:
"btn btn-primary float-right mx-3"
%>
</div>
app/views/layouts/application.html.erb
View file @
9949413a
...
...
@@ -13,6 +13,7 @@
<div
class=
"container"
>
<%=
yield
%>
<%=
render
"layouts/footer"
%>
<%=
debug
(
params
)
if
Rails
.
env
.
development?
%>
</div>
</body>
</html>
app/views/tops/index.html.erb
View file @
9949413a
...
...
@@ -15,6 +15,7 @@
<div>
<%=
render
partial:
"shared/latest_job"
,
collection:
@latest_jobs
%>
</div>
<%=
link_to
"All jobs"
,
jobs_path
,
class:
"btn btn-info"
%>
</div>
<div
class=
"top_cities text-center"
>
...
...
config/routes.rb
View file @
9949413a
...
...
@@ -5,6 +5,7 @@ Rails.application.routes.draw do
resources
:jobs
,
only:
[
:index
,
:show
]
get
"jobs/city/:city_id"
,
to:
"jobs#index"
,
as: :city_jobs
get
"jobs/industry/:industry_id"
,
to:
"jobs#index"
,
as: :industry_jobs
get
"apply"
,
to:
"jobs#apply"
devise_for
:users
root
"tops#index"
namespace
:users
do
...
...
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