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
cec1df1b
Commit
cec1df1b
authored
Nov 13, 2017
by
Xuan Trung Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
a6a6bfc9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
227 additions
and
35 deletions
+227
-35
app/assets/javascripts/application.js
+13
-0
app/views/admins/applies/_application.html.erb
+2
-2
app/views/admins/applies/index.html.erb
+1
-1
config/locales/en.yml
+211
-32
public/uploads/user/cv/72/mua_hong.pdf
+0
-0
No files found.
app/assets/javascripts/application.js
View file @
cec1df1b
...
...
@@ -19,8 +19,21 @@
$
(
document
).
ready
(
function
(){
$
(
'.message'
).
delay
(
5000
).
fadeOut
(
'slow'
);
<<<<<<<
a6a6bfc98ed7e35fb9415714f7cf725ec5a0b69a
$
(
document
).
on
(
'change'
,
'input[name=job_id]'
,
function
(
event
)
{
event
.
preventDefault
();
$
(
'#apply'
).
removeAttr
(
'disabled'
)
=======
$
(
'.form_date'
).
datetimepicker
({
language
:
'en'
,
weekStart
:
1
,
todayBtn
:
1
,
autoclose
:
1
,
todayHighlight
:
1
,
startView
:
2
,
minView
:
2
,
forceParse
:
0
>>>>>>>
fix
bugs
});
});
app/views/admins/applies/_application.html.erb
View file @
cec1df1b
...
...
@@ -4,8 +4,8 @@
<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>
<span>
Candidate Email:
<%=
"
#{
application
.
user
.
email
}
"
%>
</span>
<span
class=
"navbar-right"
>
Applied at:
<%=
l
application
.
created_at
,
format: :default
%>
</span>
</p>
</div>
<%
end
%>
app/views/admins/applies/index.html.erb
View file @
cec1df1b
...
...
@@ -36,7 +36,7 @@
<div
class=
"col-md-12 jobs"
>
<div
class=
"panel border_bot clearfix"
>
<%=
render
"admins/applies/application"
,
applications:
@application
%>
<%=
render
"admins/applies/application"
,
applications:
@application
s
%>
</div>
</div>
</div>
...
...
config/locales/en.yml
View file @
cec1df1b
# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t 'hello'
#
# In views, this is aliased to just `t`:
#
# <%= t('hello') %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# The following keys must be escaped otherwise they will not be retrieved by
# the default I18n backend:
#
# true, false, on, off, yes, no
#
# Instead, surround them with single quotes.
#
# en:
# 'true': 'foo'
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.
en
:
hello
:
"
Hello
world"
activerecord
:
errors
:
messages
:
record_invalid
:
"
Validation
failed:
%{errors}"
restrict_dependent_destroy
:
has_one
:
"
Cannot
delete
record
because
a
dependent
%{record}
exists"
has_many
:
"
Cannot
delete
record
because
dependent
%{record}
exist"
date
:
abbr_day_names
:
-
Sun
-
Mon
-
Tue
-
Wed
-
Thu
-
Fri
-
Sat
abbr_month_names
:
-
-
Jan
-
Feb
-
Mar
-
Apr
-
May
-
Jun
-
Jul
-
Aug
-
Sep
-
Oct
-
Nov
-
Dec
day_names
:
-
Sunday
-
Monday
-
Tuesday
-
Wednesday
-
Thursday
-
Friday
-
Saturday
formats
:
default
:
"
%Y-%m-%d"
long
:
"
%B
%d,
%Y"
short
:
"
%b
%d"
month_names
:
-
-
January
-
February
-
March
-
April
-
May
-
June
-
July
-
August
-
September
-
October
-
November
-
December
order
:
-
:year
-
:month
-
:day
datetime
:
distance_in_words
:
about_x_hours
:
one
:
about 1 hour
other
:
about %{count} hours
about_x_months
:
one
:
about 1 month
other
:
about %{count} months
about_x_years
:
one
:
about 1 year
other
:
about %{count} years
almost_x_years
:
one
:
almost 1 year
other
:
almost %{count} years
half_a_minute
:
half a minute
less_than_x_minutes
:
one
:
less than a minute
other
:
less than %{count} minutes
less_than_x_seconds
:
one
:
less than 1 second
other
:
less than %{count} seconds
over_x_years
:
one
:
over 1 year
other
:
over %{count} years
x_days
:
one
:
1 day
other
:
"
%{count}
days"
x_minutes
:
one
:
1 minute
other
:
"
%{count}
minutes"
x_months
:
one
:
1 month
other
:
"
%{count}
months"
x_years
:
one
:
1 year
other
:
"
%{count}
years"
x_seconds
:
one
:
1 second
other
:
"
%{count}
seconds"
prompts
:
day
:
Day
hour
:
Hour
minute
:
Minute
month
:
Month
second
:
Seconds
year
:
Year
errors
:
format
:
"
%{attribute}
%{message}"
messages
:
accepted
:
must be accepted
blank
:
can't be blank
present
:
must be blank
confirmation
:
doesn't match %{attribute}
empty
:
can't be empty
equal_to
:
must be equal to %{count}
even
:
must be even
exclusion
:
is reserved
greater_than
:
must be greater than %{count}
greater_than_or_equal_to
:
must be greater than or equal to %{count}
inclusion
:
is not included in the list
invalid
:
is invalid
less_than
:
must be less than %{count}
less_than_or_equal_to
:
must be less than or equal to %{count}
model_invalid
:
"
Validation
failed:
%{errors}"
not_a_number
:
is not a number
not_an_integer
:
must be an integer
odd
:
must be odd
required
:
must exist
taken
:
has already been taken
too_long
:
one
:
is too long (maximum is 1 character)
other
:
is too long (maximum is %{count} characters)
too_short
:
one
:
is too short (minimum is 1 character)
other
:
is too short (minimum is %{count} characters)
wrong_length
:
one
:
is the wrong length (should be 1 character)
other
:
is the wrong length (should be %{count} characters)
other_than
:
must be other than %{count}
template
:
body
:
'
There
were
problems
with
the
following
fields:'
header
:
one
:
1 error prohibited this %{model} from being saved
other
:
"
%{count}
errors
prohibited
this
%{model}
from
being
saved"
helpers
:
select
:
prompt
:
Please select
submit
:
create
:
Create %{model}
submit
:
Save %{model}
update
:
Update %{model}
number
:
currency
:
format
:
delimiter
:
"
,"
format
:
"
%u%n"
precision
:
2
separator
:
"
."
significant
:
false
strip_insignificant_zeros
:
false
unit
:
"
$"
format
:
delimiter
:
"
,"
precision
:
3
separator
:
"
."
significant
:
false
strip_insignificant_zeros
:
false
human
:
decimal_units
:
format
:
"
%n
%u"
units
:
billion
:
Billion
million
:
Million
quadrillion
:
Quadrillion
thousand
:
Thousand
trillion
:
Trillion
unit
:
'
'
format
:
delimiter
:
'
'
precision
:
3
significant
:
true
strip_insignificant_zeros
:
true
storage_units
:
format
:
"
%n
%u"
units
:
byte
:
one
:
Byte
other
:
Bytes
gb
:
GB
kb
:
KB
mb
:
MB
tb
:
TB
percentage
:
format
:
delimiter
:
'
'
format
:
"
%n%"
precision
:
format
:
delimiter
:
'
'
support
:
array
:
last_word_connector
:
"
,
and
"
two_words_connector
:
"
and
"
words_connector
:
"
,
"
time
:
am
:
am
formats
:
default
:
"
%a,
%d
%b
%Y
%H:%M:%S"
long
:
"
%B
%d,
%Y
%H:%M"
short
:
"
%d
%b
%H:%M"
pm
:
pm
public/uploads/user/cv/72/mua_hong.pdf
0 → 100644
View file @
cec1df1b
File added
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