2018-01-15 12:26:18 +00:00
|
|
|
<%# 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" %>
|
|
|
|
<%# end %>
|
|
|
|
<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.internship_title"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_title_example")) %></div>
|
|
|
|
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
|
|
|
|
</div>
|
2018-01-15 12:26:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<!-- Job Description -->
|
|
|
|
<%= f.fields_for :job_description_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, t("recruitment.internship_description"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_description_example")) %></div>
|
|
|
|
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
|
|
|
|
</div>
|
2018-01-15 12:26:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!-- Other Conditions -->
|
|
|
|
<%= f.fields_for :other_conditions_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, t("recruitment.internship_conditions"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<!-- internship partime -->
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label for="recruitment_job_part_time">
|
|
|
|
<%= f.check_box :part_time %> <%= t("recruitment.internship_part_time") %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- internship duration -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= 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">
|
2018-01-16 12:06:04 +00:00
|
|
|
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<%= t("recruitment.months") %>
|
2018-01-15 12:26:18 +00:00
|
|
|
</label>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_duration_example")) %></div>
|
|
|
|
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
|
|
|
|
</div>
|
2018-01-15 12:26:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- perks -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label"><%= t("recruitment.perks_title") %></label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label for="recruitment_job_perks_type1" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :perks, "type1" %> <%= t("recruitment.perks.type1") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_perks_type2" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :perks, "type2" %> <%= t("recruitment.perks.type2") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_perks_type3" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :perks, "type3" %> <%= t("recruitment.perks.type3") %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Job Category -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= f.select :category, RecruitmentCategory.all.asc(:job_category).collect{|rc| [rc.job_category,rc.id.to_s]}, {:include_blank => "Select Category"},{:class => "form-control"} %>
|
|
|
|
</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" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= f.text_field :location_of_work, :class => "form-control"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Industrial area -->
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :industrial_area, t("recruitment.industrial_area"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= f.text_field :industrial_area, :class => "form-control"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- travel assignment type -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label"><%= t("recruitment.travel") %></label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label for="recruitment_job_travel_assignment_type1" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :travel_assignment, "type1" %> <%= t("recruitment.travel_assignment.type1") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_travel_assignment_type2" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :travel_assignment, "type2" %> <%= t("recruitment.travel_assignment.type2") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_travel_assignment_type3" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :travel_assignment, "type3" %> <%= t("recruitment.travel_assignment.type3") %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Working Hours -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label"><%= t("recruitment.workingtime_title") %></label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label for="recruitment_job_working_time_type1" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :working_time, "type1" %> <%= t("recruitment.working_time.type1") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_working_time_type2" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :working_time, "type2" %> <%= t("recruitment.working_time.type2") %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Holidays -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label"><%= t("recruitment.holiday_title") %></label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label for="recruitment_job_holiday_system_type1" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :holiday_system, "type1" %> <%= t("recruitment.holiday_system.type1") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_holiday_system_type2" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :holiday_system, "type2" %> <%= t("recruitment.holiday_system.type2") %>
|
|
|
|
<%= f.text_field :holiday_system_other, :disabled => true %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Joining Day -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label"><%= t("recruitment.joining") %></label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label for="recruitment_job_joining_time_type1" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :joining_time, "type1" %> <%= t("recruitment.joining_time.type1") %>
|
|
|
|
</label>
|
|
|
|
<label for="recruitment_job_joining_time_type2" class="control-label radio-label">
|
|
|
|
<%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %>
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.joining_time_example")) %></div>
|
|
|
|
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
|
|
|
|
</div>
|
2018-01-15 12:26:18 +00:00
|
|
|
</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">
|
2018-01-16 12:06:04 +00:00
|
|
|
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0 %>
|
2018-01-15 12:26:18 +00:00
|
|
|
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1">
|
2018-01-16 12:06:04 +00:00
|
|
|
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0 %>
|
2018-01-15 12:26:18 +00:00
|
|
|
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Academic Type -->
|
|
|
|
<div class="form-group">
|
2018-01-17 18:22:24 +00:00
|
|
|
<%= f.label :academic_type, t("recruitment.academic_type_title"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= 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" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= 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" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Tools Req -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :tools_requirement, t("recruitment.skills"), :class => "col-sm-2 control-label" %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div class="col-sm-6">
|
2018-01-15 12:26:18 +00:00
|
|
|
<%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %>
|
2018-01-19 13:31:41 +00:00
|
|
|
<div>
|
|
|
|
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.skills_example")) %></div>
|
|
|
|
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
|
|
|
|
</div>
|
2018-01-15 12:26:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<%= f.hidden_field :post_type, :value => "type2" %>
|
|
|
|
<%= 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>
|
|
|
|
|
2018-01-19 13:31:41 +00:00
|
|
|
<%= render :partial => "example_box" %>
|
2018-01-15 12:26:18 +00:00
|
|
|
<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>
|
|
|
|
|
|
|
|
|