exchange added
This commit is contained in:
parent
488d28ae61
commit
1d652c1481
|
@ -38,7 +38,7 @@ class RecruitmentsController < PseudoSessionController
|
|||
total_pages = 0
|
||||
end
|
||||
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?
|
||||
if candidate.experience_years == 0 && candidate.experience_months == 0
|
||||
wey = t("recruitment.fresher")
|
||||
|
@ -163,12 +163,16 @@ class RecruitmentsController < PseudoSessionController
|
|||
end
|
||||
|
||||
recommendations = []
|
||||
profile.employee_recommendations.desc(:creted_at).each do |rec|
|
||||
recommendations << {
|
||||
profile.employee_recommendations.desc(:created_at).each do |rec|
|
||||
t = {
|
||||
"name" => rec.name,
|
||||
"email" => rec.email,
|
||||
"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
|
||||
|
||||
academics = []
|
||||
|
@ -294,11 +298,17 @@ class RecruitmentsController < PseudoSessionController
|
|||
if job.part_time?
|
||||
parttime = "<span class='label label-primary'>#{t("recruitment.internship_part_time")}<span>"
|
||||
end
|
||||
|
||||
{
|
||||
"infos" => infos,
|
||||
"data" => {
|
||||
"post-type" => job.get_post_type_label,
|
||||
"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" => duration,
|
||||
"perks-title" => t("recruitment.perks_title"),
|
||||
|
@ -510,7 +520,9 @@ class RecruitmentsController < PseudoSessionController
|
|||
end
|
||||
|
||||
def create_recommendation
|
||||
rec = EmployeeRecommendation.create(recommendation_params)
|
||||
if request.request_method == "POST"
|
||||
rec = EmployeeRecommendation.create(recommendation_params)
|
||||
end
|
||||
end
|
||||
|
||||
def delete_employee_recommendation
|
||||
|
@ -575,13 +587,30 @@ class RecruitmentsController < PseudoSessionController
|
|||
end
|
||||
|
||||
|
||||
# ------ ------ internship ------ ------- #
|
||||
# ------ ------ internship ------ ------- #
|
||||
|
||||
def addinternship
|
||||
@job = RecruitmentJob.new
|
||||
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
|
||||
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
|
||||
|
||||
def filter_jobs(params, type)
|
||||
|
@ -679,6 +708,8 @@ class RecruitmentsController < PseudoSessionController
|
|||
if par[:skills].present?
|
||||
par[:skills] = par[:skills].split(",")
|
||||
par[:skills].collect!{|sk| sk.strip}
|
||||
elsif par[:skills] == ""
|
||||
par[:skills] = []
|
||||
end
|
||||
par
|
||||
end
|
||||
|
|
|
@ -6,6 +6,7 @@ class EmployeeRecommendation
|
|||
field :email
|
||||
field :info
|
||||
field :employee_recommendation_token
|
||||
mount_uploader :file, AssetUploader
|
||||
|
||||
belongs_to :employee_profile
|
||||
end
|
|
@ -34,6 +34,10 @@ class RecruitmentJob
|
|||
field :internship_duration, type: Integer, :default => 0
|
||||
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
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
<div class="add-job pull-right">
|
||||
<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="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
|
||||
</div>
|
||||
<% end %>
|
|
@ -17,9 +17,11 @@
|
|||
<td><%= job.get_post_type_label.html_safe %></td>
|
||||
<td>
|
||||
<% 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" %>
|
||||
<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 %>
|
||||
</td>
|
||||
<td><%= job.employer_profile.company_name %></td>
|
||||
|
|
|
@ -18,10 +18,13 @@
|
|||
<td><%= job.get_post_type_label.html_safe %></td>
|
||||
<td>
|
||||
<% 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" %>
|
||||
<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 %>
|
||||
</td>
|
||||
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
||||
<td><%= job.filled ? "Yes" : "No" %></td>
|
||||
<td>
|
||||
|
@ -32,7 +35,13 @@
|
|||
<a href="#" disabled="disabled" class="btn btn-info"><%= t("recruitment.show_application") %></a></td>
|
||||
<% end %>
|
||||
<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 %>
|
||||
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary"><%= t("recruitment.mark_filled") %></a>
|
||||
<% else %>
|
||||
|
@ -48,4 +57,5 @@
|
|||
<div class="add-job pull-right">
|
||||
<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="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
|
||||
</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" %>
|
||||
<div class="col-sm-1">
|
||||
<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") %>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -226,11 +226,11 @@
|
|||
<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, :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>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -187,11 +187,11 @@
|
|||
<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, :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>
|
||||
</div>
|
||||
<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>
|
||||
</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>
|
||||
</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">
|
||||
<label class="col-sm-2 control-label"><%= t("recruitment.recommendation_letter") %></label>
|
||||
<div class="col-sm-10">
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
<%= render_view %>
|
||||
<% elsif data["type"] == "internships" %>
|
||||
<%= render_view("internships") %>
|
||||
<% elsif data["type"] == "exchanges" %>
|
||||
<%= render_view("exchanges") %>
|
||||
<% elsif data["type"] == "candidates" %>
|
||||
<%= render_view("candidate_show") %>
|
||||
<% end %>
|
||||
<% case data["type"]
|
||||
when "jobs", "internships" %>
|
||||
when "jobs", "internships", "exchanges" %>
|
||||
<style type="text/css">
|
||||
#applyForm .modal-dialog{
|
||||
z-index: 1100;
|
||||
|
|
|
@ -52,6 +52,13 @@
|
|||
</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">
|
||||
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
|
||||
<%= f.hidden_field :employee_recommendation_token, :value => params[:token] %>
|
||||
|
|
|
@ -2,6 +2,16 @@ en:
|
|||
module_name:
|
||||
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_t:
|
||||
type1: Job
|
||||
|
|
|
@ -2,51 +2,65 @@ zh_tw:
|
|||
module_name:
|
||||
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:
|
||||
type1: Job
|
||||
type2: Internship
|
||||
type3: Exchange
|
||||
title: Title
|
||||
posted_on: Posted On
|
||||
edit_job: Edit Job
|
||||
internship_part_time: Part Time
|
||||
internship_duration: Internship Duration
|
||||
perks_title: Perks
|
||||
type1: 正職
|
||||
type2: 實習
|
||||
type3: 調職
|
||||
title: 職稱
|
||||
posted_on: 發布
|
||||
edit_job: 編輯工作
|
||||
internship_part_time: 實習時間
|
||||
internship_duration: 實習期間
|
||||
perks_title: 額外津貼
|
||||
perks:
|
||||
type1: Certificate
|
||||
type2: Placement Offer
|
||||
type3: Informal Dress Code
|
||||
add_internship: Add Internship
|
||||
internship_title: Internship Title
|
||||
internship_description: Internship Description
|
||||
internship_conditions: Internship Conditions
|
||||
stipend-title: Stipend Title
|
||||
stipend_range: Stipend Range
|
||||
type1: 授予認證
|
||||
type2: 屆滿轉正職
|
||||
type3: 無須穿制服
|
||||
add_internship: 新增實習工作
|
||||
internship_title: 實習工作職稱
|
||||
internship_description: /實習工作描述
|
||||
internship_conditions: 實習工作條件
|
||||
stipend-title: 實習薪資
|
||||
stipend_range: 實習薪資範圍
|
||||
in: in
|
||||
min_qualification: Min Qualification
|
||||
referral_already_recommended: Sorry! You already have written a recommendation for this user.
|
||||
name: Name
|
||||
contact_email: Contact Email
|
||||
recommendation_letter: Recommendation Letter
|
||||
date: Date
|
||||
thank_you_recommendation: Thank you for your recommendation.
|
||||
user_not_found: Sorry! The user you are looking for is not available.
|
||||
referral_not_authorized: Sorry! You are not authorized to write a recommendation.
|
||||
recommendation_subject: Request to write a recommendation
|
||||
referral_name: Referral Name
|
||||
referral_email: Referral Email
|
||||
request_letter: Request Letter
|
||||
request: Request
|
||||
recommendation: Recommendations
|
||||
academic_type: Academic Type
|
||||
salary_range: Salary Range
|
||||
min_salary: Min Salary
|
||||
max_salary: Max Salary
|
||||
thousands: Thousands
|
||||
month: Month
|
||||
first_thing: This will be the first thing companies will see on your profile.
|
||||
leave_blank: Leave blank if its your current job.
|
||||
min_qualification: 最低需求
|
||||
referral_already_recommended: 報歉,您已經撰寫此使用者的推薦函.
|
||||
name: 名字
|
||||
thank_you_recommendation: 感謝您的推薦.
|
||||
contact_email: 聯絡電子郵件
|
||||
recommendation_letter: 推薦信
|
||||
date: 日期
|
||||
user_not_found: 抱歉您要找的對象目前不存在.
|
||||
referral_not_authorized: 報歉,您尚未授權進行推薦.
|
||||
recommendation_subject: 請撰寫一個建議
|
||||
request_letter_content: "我正在尋求一個新的職位,希望你能為我提供一個參考。和你一起工作多年,我相信你可以為潛在的雇主提供有關我的技能的信息,這將增加我獲得工作的機會."
|
||||
respected: 尊敬的
|
||||
recommendation_link: 請點擊以下連結進行推薦.
|
||||
yours_sincerely: 此致
|
||||
referral_name: 推薦者名字
|
||||
referral_email: 推薦者電子郵件
|
||||
request_letter: 需求信件
|
||||
request: 需求
|
||||
recommendation: 建議
|
||||
academic_type: 學術類型
|
||||
salary_range: 工資範圍
|
||||
min_salary: 最低薪資
|
||||
max_salary: 最高薪資
|
||||
thousands: 千
|
||||
month: 月
|
||||
first_thing: 這將會呈現再履歷的第一頁,公司會第一眼看到.
|
||||
leave_blank: 如已經有工作請留白.
|
||||
welcome: 歡迎
|
||||
jobs: 工作
|
||||
profile: 資料
|
||||
|
|
|
@ -56,8 +56,14 @@ Rails.application.routes.draw do
|
|||
post "/employee_recommendation", to: "recruitments#employee_recommendation"
|
||||
get "/:id/write_recommendation", to: "recruitments#write_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"
|
||||
|
||||
get "/addinternship", to: "recruitments#addinternship"
|
||||
get "/:id/editinternship", to: "recruitments#editinternship"
|
||||
|
||||
get "/addexchange", to: "recruitments#addexchange"
|
||||
get "/:id/editexchange", to: "recruitments#editexchange"
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue