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
Tô Ngọc Ánh
VeNJob
Commits
f4fb834b
Commit
f4fb834b
authored
Aug 20, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show job title and notice if cv is nil
parent
027bd940
Pipeline
#970
canceled with stages
in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
app/assets/stylesheets/applied_job.scss
+4
-0
app/controllers/jobs_controller.rb
+2
-0
app/views/applied_jobs/new.html.erb
+4
-1
config/initializers/devise.rb
+1
-1
No files found.
app/assets/stylesheets/applied_job.scss
0 → 100644
View file @
f4fb834b
.fa-file-upload
{
cursor
:
pointer
;
}
\ No newline at end of file
app/controllers/jobs_controller.rb
View file @
f4fb834b
...
...
@@ -9,6 +9,8 @@ class JobsController < ApplicationController
def
show
@job
=
Job
.
find_by
(
id:
params
[
:id
])
return
redirect_to
root_path
if
@job
.
nil?
@is_not_applied
=
user_signed_in?
?
current_user
.
applied_jobs
.
find_by
(
job_id:
@job
.
id
).
blank?
:
true
end
end
app/views/applied_jobs/new.html.erb
View file @
f4fb834b
...
...
@@ -7,6 +7,7 @@
<div
class=
"apply-form mx-5 px-5"
>
<%=
form_for
@applied_job
,
url:
confirm_applied_job_path
do
|
f
|
%>
<%=
f
.
hidden_field
:job_id
%>
<h4
class=
"text-center text-success font-weight-bold mb-4"
>
<%=
@applied_job
.
job
.
title
%>
</h4>
<div
class=
"d-flex justify-content-between my-3"
>
<%=
f
.
label
:full_name
,
class:
'mt-2 font-weight-bold'
%>
<%=
f
.
text_field
:full_name
,
class:
'form-control w-75'
,
maxlength:
200
,
required:
true
%>
...
...
@@ -19,7 +20,9 @@
<span
class=
"mt-2 font-weight-bold"
>
Curriculum Vitae
</span>
<div
class=
"w-75 mt-2"
>
<span
id=
"name_curriculum_vitae"
class=
"mr-2"
>
<%=
link_to
current_user
.
curriculum_vitae
.
identifier
,
current_user
.
curriculum_vitae
.
url
,
target:
'_blank'
%>
<%=
link_to_if
current_user
.
curriculum_vitae
.
present?
,
current_user
.
curriculum_vitae
.
identifier
,
current_user
.
curriculum_vitae
.
url
,
target:
'_blank'
do
%>
<span>
Please upload your CV!
</span>
<%
end
%>
</span>
<%=
f
.
label
:curriculum_vitae
do
%>
<i
class=
"fas fa-file-upload fa-lg"
></i>
...
...
config/initializers/devise.rb
View file @
f4fb834b
...
...
@@ -139,7 +139,7 @@ Devise.setup do |config|
# their account can't be confirmed with the token any more.
# Default is nil, meaning there is no restriction on how long a user can take
# before confirming their account.
# config.confirm_within = 3
.days
config
.
confirm_within
=
1
.
days
# If true, requires any email changes to be confirmed (exactly the same way as
# initial account confirmation) to be applied. Requires additional unconfirmed_email
...
...
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