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
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xuan Trung Le
venjob
Commits
c4767154
Commit
c4767154
authored
Nov 02, 2017
by
Xuan Trung Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
d820e01d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
2 deletions
+75
-2
app/assets/javascripts/application.js
+13
-0
app/assets/stylesheets/application.scss
+4
-0
app/controllers/admins/applies_controller.rb
+2
-0
app/models/apply_job.rb
+2
-0
app/views/admins/applies/_application.html.erb
+9
-0
app/views/admins/applies/index.html.erb
+45
-2
vendor/assets/javascripts/bootstrap-datetimepicker.min.js
+0
-0
vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
+0
-0
No files found.
app/assets/javascripts/application.js
View file @
c4767154
...
@@ -14,7 +14,20 @@
...
@@ -14,7 +14,20 @@
//= require_tree .
//= require_tree .
//= require javascripts/jquery-3.2.1.min.js
//= require javascripts/jquery-3.2.1.min.js
//= require javascripts/bootstrap.min.js
//= require javascripts/bootstrap.min.js
//= require javascripts/bootstrap.min.js
//= require bootstrap-datetimepicker.min.js
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
$
(
'.message'
).
delay
(
5000
).
fadeOut
(
'slow'
);
$
(
'.message'
).
delay
(
5000
).
fadeOut
(
'slow'
);
$
(
'.form_date'
).
datetimepicker
({
language
:
'fr'
,
weekStart
:
1
,
todayBtn
:
1
,
autoclose
:
1
,
todayHighlight
:
1
,
startView
:
2
,
minView
:
2
,
forceParse
:
0
});
});
});
app/assets/stylesheets/application.scss
View file @
c4767154
@import
"stylesheets/bootstrap-theme.min.css"
;
@import
"stylesheets/bootstrap-theme.min.css"
;
@import
"stylesheets/bootstrap.min.css"
;
@import
"stylesheets/bootstrap.min.css"
;
@import
"stylesheets/font-awesome.css"
;
@import
"stylesheets/font-awesome.css"
;
@import
"stylesheets/bootstrap-datetimepicker.min.css"
;
body
{
body
{
...
@@ -36,6 +37,9 @@ body{
...
@@ -36,6 +37,9 @@ body{
.wid80
{
.wid80
{
width
:
80%
!
important
;
width
:
80%
!
important
;
}
}
.mt-20
{
margin-top
:
20px
;
}
// key-visual
// key-visual
.key-visual
{
.key-visual
{
...
...
app/controllers/admins/applies_controller.rb
View file @
c4767154
class
Admins
::
AppliesController
<
ApplicationController
class
Admins
::
AppliesController
<
ApplicationController
def
index
def
index
@cities
=
City
.
pluck
(
:id
,
:name
)
@applications
=
ApplyJob
.
applications
.
includes
(
:job
,
:user
)
end
end
end
end
app/models/apply_job.rb
View file @
c4767154
...
@@ -4,4 +4,6 @@ class ApplyJob < ApplicationRecord
...
@@ -4,4 +4,6 @@ class ApplyJob < ApplicationRecord
validates
:cv
,
presence:
true
validates
:cv
,
presence:
true
validates
:email
,
presence:
true
validates
:email
,
presence:
true
validates
:name
,
presence:
true
validates
:name
,
presence:
true
scope
:applications
,
->
{
joins
(
:job
)
}
end
end
app/views/admins/applies/_application.html.erb
0 → 100644
View file @
c4767154
<div
class=
"job-intro well mr0 mrBot20"
>
<h4
class=
"mr0"
>
<%=
link_to
application
.
job
.
name
,
job_path
(
application
.
job
)
%>
</h4>
<p>
<%=
"Candidate Name:
#{
application
.
user
.
name
}
"
%>
</p>
<p>
<%=
"Candidate CV:
#{
application
.
user
.
cv
}
"
%>
</p>
<p>
<span>
<%=
"Candidate Email:
#{
application
.
user
.
email
}
"
%>
</span>
<span
class=
"navbar-right"
>
<%=
"Applied at:
#{
application
.
created_at
.
strftime
(
'%m/%d/%y'
)
}
"
%>
</span>
</p>
</div>
app/views/admins/applies/index.html.erb
View file @
c4767154
<h1>
Admins::Applies#index
</h1>
<div
class=
"row"
>
<p>
Find me in app/views/admins/applies/index.html.erb
</p>
<div
class=
"container"
>
<div
class=
"col-md-12 search mt-20"
>
<%=
form_tag
admins_applies_path
,
method: :get
,
class:
"search-form"
do
%>
<div
class=
"field form-group"
>
<%=
text_field_tag
(
:search
,
params
[
:search
],
placeholder:
"Email"
,
class:
"form-control"
)
%>
</div>
<div
class=
"field form-group"
>
<%=
select_tag
:city
,
options_for_select
(
City
.
pluck
(
:name
)),
include_blank:
"City"
,
class:
"form-control"
%>
</div>
<div
class=
"field form-group"
>
<%=
select_tag
:industry
,
options_for_select
(
Industry
.
pluck
(
:name
)),
include_blank:
"Industry"
,
class:
"form-control"
%>
</div>
<div
class=
"form-group form-inline"
>
<div
class=
"input-group date form_date col-md-5"
data-date=
""
data-date-format=
"dd MM yyyy"
data-link-field=
"dtp_input1"
data-link-format=
"yyyy-mm-dd"
>
<input
class=
"form-control"
size=
"16"
type=
"text"
value=
""
readonly
>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove fa fa-trash-o"
></span></span>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-calendar fa fa-calendar"
></span></span>
</div>
<!-- <input type="hidden" id="dtp_input1" value="" /> -->
<%=
hidden_field_tag
(
'dtp_input1'
,
params
[
:date_from
],
value:
''
)
%>
<strong>
~
</strong>
<div
class=
"input-group date form_date col-md-5"
data-date=
""
data-date-format=
"dd MM yyyy"
data-link-field=
"dtp_input2"
data-link-format=
"yyyy-mm-dd"
>
<input
class=
"form-control"
size=
"16"
type=
"text"
value=
""
readonly
>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove fa fa-trash-o"
></span></span>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-calendar fa fa-calendar"
></span></span>
</div>
<%=
hidden_field_tag
(
'dtp_input2'
,
params
[
:date_to
],
value:
''
)
%>
</div>
<div
class=
"field form-group form-inline text-center"
>
<%=
submit_tag
"search"
,
class:
"btn btn-default"
%>
<%=
submit_tag
"Down csv"
,
class:
"btn btn-default"
%>
</div>
<%
end
%>
</div>
<div
class=
"col-md-12 jobs"
>
<div
class=
"panel border_bot clearfix"
>
<%
@applications
.
each
do
|
application
|
%>
<%=
render
"admins/applies/application"
,
application:
application
%>
<%
end
%>
</div>
</div>
</div>
</div>
vendor/assets/javascripts/bootstrap-datetimepicker.min.js
0 → 100644
View file @
c4767154
This diff is collapsed.
Click to expand it.
vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
0 → 100644
View file @
c4767154
This diff is collapsed.
Click to expand it.
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