exchange added
This commit is contained in:
parent
488d28ae61
commit
1d652c1481
|
@ -38,7 +38,7 @@ class RecruitmentsController < PseudoSessionController
|
||||||
total_pages = 0
|
total_pages = 0
|
||||||
end
|
end
|
||||||
candidates.each do |candidate|
|
candidates.each do |candidate|
|
||||||
company = !candidate.current_company.nil? && candidate.current_company != "" ? candidate.current_company : candidate.get_current_exp
|
company = !candidate.current_company.nil? && candidate.current_company != "" ? candidate.current_company : candidate.get_current_exp.company_name
|
||||||
company = "N/A" if company.nil?
|
company = "N/A" if company.nil?
|
||||||
if candidate.experience_years == 0 && candidate.experience_months == 0
|
if candidate.experience_years == 0 && candidate.experience_months == 0
|
||||||
wey = t("recruitment.fresher")
|
wey = t("recruitment.fresher")
|
||||||
|
@ -163,12 +163,16 @@ class RecruitmentsController < PseudoSessionController
|
||||||
end
|
end
|
||||||
|
|
||||||
recommendations = []
|
recommendations = []
|
||||||
profile.employee_recommendations.desc(:creted_at).each do |rec|
|
profile.employee_recommendations.desc(:created_at).each do |rec|
|
||||||
recommendations << {
|
t = {
|
||||||
"name" => rec.name,
|
"name" => rec.name,
|
||||||
"email" => rec.email,
|
"email" => rec.email,
|
||||||
"rec-letter" => rec.info
|
"rec-letter" => rec.info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t["download-file"] = !rec.file.nil? && !rec.file.url.nil? ? "<a href='#{rec.file.url}' target='_blank'>#{t("recruitment.download_file")}</a>" : ""
|
||||||
|
|
||||||
|
recommendations << t
|
||||||
end
|
end
|
||||||
|
|
||||||
academics = []
|
academics = []
|
||||||
|
@ -294,11 +298,17 @@ class RecruitmentsController < PseudoSessionController
|
||||||
if job.part_time?
|
if job.part_time?
|
||||||
parttime = "<span class='label label-primary'>#{t("recruitment.internship_part_time")}<span>"
|
parttime = "<span class='label label-primary'>#{t("recruitment.internship_part_time")}<span>"
|
||||||
end
|
end
|
||||||
|
|
||||||
{
|
{
|
||||||
"infos" => infos,
|
"infos" => infos,
|
||||||
"data" => {
|
"data" => {
|
||||||
"post-type" => job.get_post_type_label,
|
"post-type" => job.get_post_type_label,
|
||||||
"part-time" => parttime,
|
"part-time" => parttime,
|
||||||
|
"exchange-duration-title" => t("recruitment.exchange_duration"),
|
||||||
|
"min-credit-title" => t("recruitment.min_credit_score"),
|
||||||
|
"min-credit" => (job.min_credit_score > 0 ? job.min_credit_score : t("recruitment.not_available")),
|
||||||
|
"exchange-start-title" => t("recruitment.exchange_start_date"),
|
||||||
|
"exchange-start" => (job.exchange_start_date.nil? ? t("recruitment.not_available") : job.exchange_start_date ),
|
||||||
"internship-duration-title" => t("recruitment.internship_duration"),
|
"internship-duration-title" => t("recruitment.internship_duration"),
|
||||||
"internship-duration" => duration,
|
"internship-duration" => duration,
|
||||||
"perks-title" => t("recruitment.perks_title"),
|
"perks-title" => t("recruitment.perks_title"),
|
||||||
|
@ -510,7 +520,9 @@ class RecruitmentsController < PseudoSessionController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_recommendation
|
def create_recommendation
|
||||||
rec = EmployeeRecommendation.create(recommendation_params)
|
if request.request_method == "POST"
|
||||||
|
rec = EmployeeRecommendation.create(recommendation_params)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_employee_recommendation
|
def delete_employee_recommendation
|
||||||
|
@ -575,13 +587,30 @@ class RecruitmentsController < PseudoSessionController
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# ------ ------ internship ------ ------- #
|
# ------ ------ internship ------ ------- #
|
||||||
|
|
||||||
def addinternship
|
def addinternship
|
||||||
@job = RecruitmentJob.new
|
@job = RecruitmentJob.new
|
||||||
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def editinternship
|
||||||
|
@job = RecruitmentJob.find(params[:id])
|
||||||
|
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
||||||
|
end
|
||||||
|
|
||||||
|
# ------ ------ exchange ------ ------- #
|
||||||
|
|
||||||
|
def addexchange
|
||||||
|
@job = RecruitmentJob.new
|
||||||
|
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
||||||
|
end
|
||||||
|
|
||||||
|
def editexchange
|
||||||
|
@job = RecruitmentJob.find(params[:id])
|
||||||
|
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def filter_jobs(params, type)
|
def filter_jobs(params, type)
|
||||||
|
@ -679,6 +708,8 @@ class RecruitmentsController < PseudoSessionController
|
||||||
if par[:skills].present?
|
if par[:skills].present?
|
||||||
par[:skills] = par[:skills].split(",")
|
par[:skills] = par[:skills].split(",")
|
||||||
par[:skills].collect!{|sk| sk.strip}
|
par[:skills].collect!{|sk| sk.strip}
|
||||||
|
elsif par[:skills] == ""
|
||||||
|
par[:skills] = []
|
||||||
end
|
end
|
||||||
par
|
par
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,6 +6,7 @@ class EmployeeRecommendation
|
||||||
field :email
|
field :email
|
||||||
field :info
|
field :info
|
||||||
field :employee_recommendation_token
|
field :employee_recommendation_token
|
||||||
|
mount_uploader :file, AssetUploader
|
||||||
|
|
||||||
belongs_to :employee_profile
|
belongs_to :employee_profile
|
||||||
end
|
end
|
|
@ -34,6 +34,10 @@ class RecruitmentJob
|
||||||
field :internship_duration, type: Integer, :default => 0
|
field :internship_duration, type: Integer, :default => 0
|
||||||
field :perks #type1 => certificate, type2 => placement offer, type3 => informal dress code
|
field :perks #type1 => certificate, type2 => placement offer, type3 => informal dress code
|
||||||
|
|
||||||
|
#exchanges
|
||||||
|
field :exchange_start_date, type: DateTime
|
||||||
|
field :min_credit_score, type: Integer, :default => 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
field :filled, type: Boolean, :default => false
|
field :filled, type: Boolean, :default => false
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
<div class="add-job pull-right">
|
<div class="add-job pull-right">
|
||||||
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
|
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
|
||||||
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
|
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
|
||||||
|
<a href="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
|
@ -17,9 +17,11 @@
|
||||||
<td><%= job.get_post_type_label.html_safe %></td>
|
<td><%= job.get_post_type_label.html_safe %></td>
|
||||||
<td>
|
<td>
|
||||||
<% if job.post_type == "type1" %>
|
<% if job.post_type == "type1" %>
|
||||||
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
<% elsif job.post_type == "type2" %>
|
<% elsif job.post_type == "type2" %>
|
||||||
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
|
<% elsif job.post_type == "type3" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/exchanges/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= job.employer_profile.company_name %></td>
|
<td><%= job.employer_profile.company_name %></td>
|
||||||
|
|
|
@ -18,10 +18,13 @@
|
||||||
<td><%= job.get_post_type_label.html_safe %></td>
|
<td><%= job.get_post_type_label.html_safe %></td>
|
||||||
<td>
|
<td>
|
||||||
<% if job.post_type == "type1" %>
|
<% if job.post_type == "type1" %>
|
||||||
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
<% elsif job.post_type == "type2" %>
|
<% elsif job.post_type == "type2" %>
|
||||||
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
|
<% elsif job.post_type == "type3" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/exchanges/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</td>
|
||||||
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
||||||
<td><%= job.filled ? "Yes" : "No" %></td>
|
<td><%= job.filled ? "Yes" : "No" %></td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -32,7 +35,13 @@
|
||||||
<a href="#" disabled="disabled" class="btn btn-info"><%= t("recruitment.show_application") %></a></td>
|
<a href="#" disabled="disabled" class="btn btn-info"><%= t("recruitment.show_application") %></a></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<td>
|
<td>
|
||||||
<a href="/recruit/<%= job.id.to_s %>/editjob" class="btn btn-warning"><%= t("recruitment.edit") %></a>
|
<% if job.post_type == "type1" %>
|
||||||
|
<a href="/recruit/<%= job.id.to_s %>/editjob" class="btn btn-warning"><%= t("recruitment.edit") %></a>
|
||||||
|
<% elsif job.post_type == "type2" %>
|
||||||
|
<a href="/recruit/<%= job.id.to_s %>/editinternship" class="btn btn-warning"><%= t("recruitment.edit") %></a>
|
||||||
|
<% elsif job.post_type == "type3" %>
|
||||||
|
<a href="/recruit/<%= job.id.to_s %>/editexchange" class="btn btn-warning"><%= t("recruitment.edit") %></a>
|
||||||
|
<% end %>
|
||||||
<% if !job.filled %>
|
<% if !job.filled %>
|
||||||
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary"><%= t("recruitment.mark_filled") %></a>
|
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary"><%= t("recruitment.mark_filled") %></a>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -48,4 +57,5 @@
|
||||||
<div class="add-job pull-right">
|
<div class="add-job pull-right">
|
||||||
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
|
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
|
||||||
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
|
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
|
||||||
|
<a href="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
|
||||||
</div>
|
</div>
|
|
@ -0,0 +1,243 @@
|
||||||
|
<%# content_for :page_specific_css do %>
|
||||||
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
||||||
|
<%= stylesheet_link_tag "lib/fileupload" %>
|
||||||
|
<%= stylesheet_link_tag "lib/main-list" %>
|
||||||
|
<%# end %>
|
||||||
|
<%# content_for :page_specific_javascript do %>
|
||||||
|
<%= javascript_include_tag "lib/bootstrap-fileupload" %>
|
||||||
|
<%= javascript_include_tag "lib/file-type" %>
|
||||||
|
<%= javascript_include_tag "lib/bootstrap-datetimepicker" %>
|
||||||
|
<%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %>
|
||||||
|
<%# end %>
|
||||||
|
<style type="text/css">
|
||||||
|
.header-title{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
hr{
|
||||||
|
border-top: 1px solid #5c5c5c;
|
||||||
|
}
|
||||||
|
hr.dotted{
|
||||||
|
border-top: 1px dotted #5c5c5c;
|
||||||
|
}
|
||||||
|
.bootstrap-datetimepicker-widget ul{
|
||||||
|
list-style: none;
|
||||||
|
padding: 10px 25px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.bootstrap-datetimepicker-widget ul td,th{
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bootstrap-datetimepicker-widget ul td.old, td.new{
|
||||||
|
color: #cecece;
|
||||||
|
}
|
||||||
|
.bootstrap-datetimepicker-widget ul td:hover,th:hover{
|
||||||
|
background-color: #5c5c5c;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bootstrap-datetimepicker-widget span.month{
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.default_picker span.add-on{
|
||||||
|
padding: 3px;
|
||||||
|
margin-left: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<ul class="nav nav-pills language-nav">
|
||||||
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||||
|
<li class="<%= 'active' if i == 0 %>">
|
||||||
|
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale) %></a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- Language -->
|
||||||
|
<div class="tab-content language-area">
|
||||||
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||||
|
<div class="<%= locale %> tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
||||||
|
<!-- Job Title -->
|
||||||
|
<%= f.fields_for :job_title_translations do |fe| %>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= fe.label locale, t("recruitment.exchange_title"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<!-- Job Description -->
|
||||||
|
<%= f.fields_for :job_description_translations do |fe| %>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= fe.label locale, t("recruitment.exchange_description"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<!-- Other Conditions -->
|
||||||
|
<%= f.fields_for :other_conditions_translations do |fe| %>
|
||||||
|
<div class="form-group">
|
||||||
|
<%= fe.label locale, t("recruitment.exchange_conditions"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- exchange min credit score -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :min_credit_score, t("recruitment.min_credit_score"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<%= f.number_field :min_credit_score, :class => "form-control", :max => 36, :min => 1 %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- exchange duration -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :internship_duration, t("recruitment.exchange_duration"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<label for="recruitment_job_internship_duration">
|
||||||
|
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %>
|
||||||
|
<%= t("recruitment.months") %>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- exchange start date -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :exchange_start_date, t("recruitment.exchange_start_date"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<%= f.datetime_picker :exchange_start_date, :no_label => true, :new_record => @job.new_record? %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- salary type -->
|
||||||
|
<!-- <div class="form-group">
|
||||||
|
<label class="col-sm-2 control-label"><%#= t("recruitment.stipend-title") %></label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<label for="recruitment_job_salary_type1" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :salary, "type1" %> <%#= t("recruitment.salary.type1") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_salary_type2" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :salary, "type2" %> <%#= t("recruitment.salary.type2") %>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<!-- salary range -->
|
||||||
|
<!-- <div class="form-group">
|
||||||
|
<label class="col-sm-2 control-label"><%#= t("recruitment.stipend_range") %></label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<label for="recruitment_job_min_salary" class="control-label radio-label">
|
||||||
|
<%#= t("recruitment.min_salary") %> <%#= f.number_field :min_salary %> <%#= t("recruitment.thousands") + " / " + t("recruitment.month") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_max_salary" class="control-label radio-label">
|
||||||
|
<%#= t("recruitment.max_salary") %> <%#= f.number_field :max_salary %> <%#= t("recruitment.thousands") + " / " + t("recruitment.month") %>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<!-- location of work -->
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :location_of_work, t("recruitment.location"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= f.text_field :location_of_work, :class => "form-control"%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<!-- Work Type -->
|
||||||
|
<!-- <div class="form-group">
|
||||||
|
<label class="col-sm-2 control-label"><%#= t("recruitment.worktype_title") %></label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<label for="recruitment_job_work_type_type1" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :work_type, "type1" %> <%#= t("recruitment.work_type.type1") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_work_type_type2" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :work_type, "type2" %> <%#= t("recruitment.work_type.type2") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_work_type_type3" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :work_type, "type3" %> <%#= t("recruitment.work_type.type3") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_work_type_type4" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :work_type, "type4" %> <%#= t("recruitment.work_type.type4") %>
|
||||||
|
</label>
|
||||||
|
<label for="recruitment_job_work_type_type5" class="control-label radio-label">
|
||||||
|
<%#= f.radio_button :work_type, "type5" %> <%#= t("recruitment.work_type.type5") %>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<!-- Work Experience -->
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0 %>
|
||||||
|
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0 %>
|
||||||
|
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Academic Type -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :academic_type, t("recruitment.academic_type"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= f.select :academic_type, @academic_types, {:include_blank => "Select Degree"},{:class => "form-control"} %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Academic Req -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :academic_requirement, t("recruitment.academic_requirement"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= f.text_area :academic_requirement, :class => "form-control"%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Language Req -->
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
|
<%= f.hidden_field :post_type, :value => "type3" %>
|
||||||
|
<%= f.hidden_field :employer_profile_id, :value => @profile.profile.id %>
|
||||||
|
<%= f.submit "Submit", :class =>"btn btn-primary" %>
|
||||||
|
<a href="<%= mydashboard_path %>" class="btn btn-default"><%= t("recruitment.cancel") %></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$("#recruitment_job_holiday_system_type2").on("click",function(){
|
||||||
|
if($(this).is(":checked")){
|
||||||
|
$("#recruitment_job_holiday_system_other").prop("disabled",false);
|
||||||
|
$("#recruitment_job_holiday_system_other").focus();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#recruitment_job_holiday_system_type1").on("click",function(){
|
||||||
|
$("#recruitment_job_holiday_system_other").prop("disabled",true).val("");
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<%= f.label :internship_duration, t("recruitment.internship_duration"), :class => "col-sm-2 control-label" %>
|
<%= f.label :internship_duration, t("recruitment.internship_duration"), :class => "col-sm-2 control-label" %>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
<label for="recruitment_job_internship_duration">
|
<label for="recruitment_job_internship_duration">
|
||||||
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1, :value => 1 %>
|
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %>
|
||||||
<%= t("recruitment.months") %>
|
<%= t("recruitment.months") %>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -226,11 +226,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
|
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0, :value => 0 %>
|
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0 %>
|
||||||
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0, :value => 0 %>
|
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0 %>
|
||||||
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -187,11 +187,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
|
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0, :value => 0 %>
|
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0 %>
|
||||||
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0, :value => 0 %>
|
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0 %>
|
||||||
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<div id="dashboard-wrapper">
|
||||||
|
<%= render :partial => "dashboard_header" %>
|
||||||
|
<h3 class="header-title"><%= t("recruitment.add_exchange") %></h3>
|
||||||
|
<hr>
|
||||||
|
<%= form_for @job, url: {:action => "createjob"}, html: {:class => "form-horizontal main-forms"} do |f| %>
|
||||||
|
<%= render :partial => "exchange_form", locals: {f: f} %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<div id="dashboard-wrapper">
|
||||||
|
<%= render :partial => "dashboard_header" %>
|
||||||
|
<h3 class="header-title"><%= t("recruitment.edit_internship") %></h3>
|
||||||
|
<hr>
|
||||||
|
<%= form_for @job, url: "/recruit/#{@job.id.to_s}/updatejob", html: {:class => "form-horizontal main-forms"} do |f| %>
|
||||||
|
<%= render :partial => "internship_form", locals: {f: f} %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
|
@ -75,6 +75,14 @@
|
||||||
<p class="form-control-static"><%= rec.email %></p>
|
<p class="form-control-static"><%= rec.email %></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% if !rec.file.nil? && !rec.file.url.nil? %>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-2 control-label"><%= t("recruitment.file") %></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<p class="form-control-static"><a href="<%= rec.file.url %>" target="_blank"><%= t("recruitment.download_file") %></a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-2 control-label"><%= t("recruitment.recommendation_letter") %></label>
|
<label class="col-sm-2 control-label"><%= t("recruitment.recommendation_letter") %></label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
|
|
|
@ -4,11 +4,13 @@
|
||||||
<%= render_view %>
|
<%= render_view %>
|
||||||
<% elsif data["type"] == "internships" %>
|
<% elsif data["type"] == "internships" %>
|
||||||
<%= render_view("internships") %>
|
<%= render_view("internships") %>
|
||||||
|
<% elsif data["type"] == "exchanges" %>
|
||||||
|
<%= render_view("exchanges") %>
|
||||||
<% elsif data["type"] == "candidates" %>
|
<% elsif data["type"] == "candidates" %>
|
||||||
<%= render_view("candidate_show") %>
|
<%= render_view("candidate_show") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% case data["type"]
|
<% case data["type"]
|
||||||
when "jobs", "internships" %>
|
when "jobs", "internships", "exchanges" %>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#applyForm .modal-dialog{
|
#applyForm .modal-dialog{
|
||||||
z-index: 1100;
|
z-index: 1100;
|
||||||
|
|
|
@ -52,6 +52,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<%= f.label :file, t("recruitment.file"), :class => "col-sm-2 control-label" %>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<%= f.file_field :file %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-offset-2 col-sm-10">
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
|
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
|
||||||
<%= f.hidden_field :employee_recommendation_token, :value => params[:token] %>
|
<%= f.hidden_field :employee_recommendation_token, :value => params[:token] %>
|
||||||
|
|
|
@ -2,6 +2,16 @@ en:
|
||||||
module_name:
|
module_name:
|
||||||
recruitment: Recruitment
|
recruitment: Recruitment
|
||||||
recruitment:
|
recruitment:
|
||||||
|
file: File
|
||||||
|
download_file: Download File
|
||||||
|
add_exchange: Add Exchange
|
||||||
|
edit_internship: Edit Internship
|
||||||
|
min_credit_score: Min Credit Score
|
||||||
|
exchange_title: Exchange Title
|
||||||
|
exchange_description: Exchange Description
|
||||||
|
exchange_conditions: Exchange Information
|
||||||
|
exchange_duration: Exchange Duration
|
||||||
|
exchange_start_date: Exchange Start Date
|
||||||
post_type: Type
|
post_type: Type
|
||||||
post_t:
|
post_t:
|
||||||
type1: Job
|
type1: Job
|
||||||
|
|
|
@ -2,51 +2,65 @@ zh_tw:
|
||||||
module_name:
|
module_name:
|
||||||
recruitment: 招募
|
recruitment: 招募
|
||||||
recruitment:
|
recruitment:
|
||||||
post_type: Type
|
file: File
|
||||||
|
download_file: Download File
|
||||||
|
add_exchange: Add Exchange
|
||||||
|
edit_internship: Edit Internship
|
||||||
|
min_credit_score: Min Credit Score
|
||||||
|
exchange_title: Exchange Title
|
||||||
|
exchange_description: Exchange Description
|
||||||
|
exchange_conditions: Exchange Information
|
||||||
|
exchange_duration: Exchange Duration
|
||||||
|
exchange_start_date: Exchange Start Date
|
||||||
|
post_type: 公告類型
|
||||||
post_t:
|
post_t:
|
||||||
type1: Job
|
type1: 正職
|
||||||
type2: Internship
|
type2: 實習
|
||||||
type3: Exchange
|
type3: 調職
|
||||||
title: Title
|
title: 職稱
|
||||||
posted_on: Posted On
|
posted_on: 發布
|
||||||
edit_job: Edit Job
|
edit_job: 編輯工作
|
||||||
internship_part_time: Part Time
|
internship_part_time: 實習時間
|
||||||
internship_duration: Internship Duration
|
internship_duration: 實習期間
|
||||||
perks_title: Perks
|
perks_title: 額外津貼
|
||||||
perks:
|
perks:
|
||||||
type1: Certificate
|
type1: 授予認證
|
||||||
type2: Placement Offer
|
type2: 屆滿轉正職
|
||||||
type3: Informal Dress Code
|
type3: 無須穿制服
|
||||||
add_internship: Add Internship
|
add_internship: 新增實習工作
|
||||||
internship_title: Internship Title
|
internship_title: 實習工作職稱
|
||||||
internship_description: Internship Description
|
internship_description: /實習工作描述
|
||||||
internship_conditions: Internship Conditions
|
internship_conditions: 實習工作條件
|
||||||
stipend-title: Stipend Title
|
stipend-title: 實習薪資
|
||||||
stipend_range: Stipend Range
|
stipend_range: 實習薪資範圍
|
||||||
in: in
|
in: in
|
||||||
min_qualification: Min Qualification
|
min_qualification: 最低需求
|
||||||
referral_already_recommended: Sorry! You already have written a recommendation for this user.
|
referral_already_recommended: 報歉,您已經撰寫此使用者的推薦函.
|
||||||
name: Name
|
name: 名字
|
||||||
contact_email: Contact Email
|
thank_you_recommendation: 感謝您的推薦.
|
||||||
recommendation_letter: Recommendation Letter
|
contact_email: 聯絡電子郵件
|
||||||
date: Date
|
recommendation_letter: 推薦信
|
||||||
thank_you_recommendation: Thank you for your recommendation.
|
date: 日期
|
||||||
user_not_found: Sorry! The user you are looking for is not available.
|
user_not_found: 抱歉您要找的對象目前不存在.
|
||||||
referral_not_authorized: Sorry! You are not authorized to write a recommendation.
|
referral_not_authorized: 報歉,您尚未授權進行推薦.
|
||||||
recommendation_subject: Request to write a recommendation
|
recommendation_subject: 請撰寫一個建議
|
||||||
referral_name: Referral Name
|
request_letter_content: "我正在尋求一個新的職位,希望你能為我提供一個參考。和你一起工作多年,我相信你可以為潛在的雇主提供有關我的技能的信息,這將增加我獲得工作的機會."
|
||||||
referral_email: Referral Email
|
respected: 尊敬的
|
||||||
request_letter: Request Letter
|
recommendation_link: 請點擊以下連結進行推薦.
|
||||||
request: Request
|
yours_sincerely: 此致
|
||||||
recommendation: Recommendations
|
referral_name: 推薦者名字
|
||||||
academic_type: Academic Type
|
referral_email: 推薦者電子郵件
|
||||||
salary_range: Salary Range
|
request_letter: 需求信件
|
||||||
min_salary: Min Salary
|
request: 需求
|
||||||
max_salary: Max Salary
|
recommendation: 建議
|
||||||
thousands: Thousands
|
academic_type: 學術類型
|
||||||
month: Month
|
salary_range: 工資範圍
|
||||||
first_thing: This will be the first thing companies will see on your profile.
|
min_salary: 最低薪資
|
||||||
leave_blank: Leave blank if its your current job.
|
max_salary: 最高薪資
|
||||||
|
thousands: 千
|
||||||
|
month: 月
|
||||||
|
first_thing: 這將會呈現再履歷的第一頁,公司會第一眼看到.
|
||||||
|
leave_blank: 如已經有工作請留白.
|
||||||
welcome: 歡迎
|
welcome: 歡迎
|
||||||
jobs: 工作
|
jobs: 工作
|
||||||
profile: 資料
|
profile: 資料
|
||||||
|
|
|
@ -56,8 +56,14 @@ Rails.application.routes.draw do
|
||||||
post "/employee_recommendation", to: "recruitments#employee_recommendation"
|
post "/employee_recommendation", to: "recruitments#employee_recommendation"
|
||||||
get "/:id/write_recommendation", to: "recruitments#write_recommendation"
|
get "/:id/write_recommendation", to: "recruitments#write_recommendation"
|
||||||
post "create_recommendation", to: "recruitments#create_recommendation"
|
post "create_recommendation", to: "recruitments#create_recommendation"
|
||||||
|
get "create_recommendation", to: "recruitments#create_recommendation"
|
||||||
delete "/:id/delete_employee_recommendation", to: "recruitments#delete_employee_recommendation"
|
delete "/:id/delete_employee_recommendation", to: "recruitments#delete_employee_recommendation"
|
||||||
|
|
||||||
get "/addinternship", to: "recruitments#addinternship"
|
get "/addinternship", to: "recruitments#addinternship"
|
||||||
|
get "/:id/editinternship", to: "recruitments#editinternship"
|
||||||
|
|
||||||
|
get "/addexchange", to: "recruitments#addexchange"
|
||||||
|
get "/:id/editexchange", to: "recruitments#editexchange"
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue