added employee_identity and some other changes to recruitments

This commit is contained in:
IT 2018-08-02 16:44:45 +08:00
parent 1c765fa053
commit 326c5f1ec0
5 changed files with 33 additions and 2 deletions

View File

@ -231,6 +231,10 @@ class RecruitmentsController < PseudoSessionController
"gender" => t("recruitment.gender.#{profile.gender}"),
"martial-title" => t("recruitment.martial_title"),
"martial" => (!profile.marital_status.nil? && profile.marital_status != "" ? t("recruitment.martial.#{profile.marital_status}") : t("recruitment.not_available")),
"employment_status-title" => t("recruitment.gender_title"),
"employment_status" => t("recruitment.employment.#{profile.employment_status}"),
"employee_identity-title" => t("recruitment.employee_identity_title"),
"employee_identity" => t("recruitment.employee_identity.#{profile.employee_identity}"),
"language-title" => t("recruitment.language_title"),
"language" => profile.languages,
"workingtime-title" => t("recruitment.workingtime_title"),

View File

@ -14,6 +14,7 @@ class EmployeeProfile
field :address, localize: true
field :autobiography, localize: true
field :employment_status #type1 -> employed, type2 -> unemployed
field :employee_identity #type1 -> General Candidate, type2 -> Internship, type3 -> Exchange Student
field :active, type: Boolean, :default => true
# job info

View File

@ -97,8 +97,8 @@
<%= fe.text_field :phone_number, :class => "form-control" %>
</div>
</div>
<!-- employment status -->
<!-- employment status -->
<div class="form-group">
<label class="col-sm-2 control-label"><%= t("recruitment.employment_status") %></label>
<div class="col-sm-8">
@ -110,6 +110,22 @@
</label>
</div>
</div>
<!-- employee identity -->
<div class="form-group">
<label class="col-sm-2 control-label"><%= t("recruitment.employee_identity_title") %></label>
<div class="col-sm-8">
<label for="recruit_profile_employee_profile_attributes_employee_identity_type1" class="control-label radio-label">
<%= fe.radio_button :employee_identity, "type1" %> <%= t("recruitment.employee_identity.type1") %>
</label>
<label for="recruit_profile_employee_profile_attributes_employee_identity_type2" class="control-label radio-label">
<%= fe.radio_button :employee_identity, "type2" %> <%= t("recruitment.employee_identity.type2") %>
</label>
<label for="recruit_profile_employee_profile_attributes_employee_identity_type3" class="control-label radio-label">
<%= fe.radio_button :employee_identity, "type3" %> <%= t("recruitment.employee_identity.type3") %>
</label>
</div>
</div>
<!-- Website -->
<div class="form-group">

View File

@ -167,6 +167,11 @@ en:
employment:
type1: Un-Employed
type2: Employed
employee_identity_title: Employee Identity
employee_identity:
type1: General Candidate
type2: Internship
type3: Exchange Student
website: Website / Link
avatar: Avatar
address: Address

View File

@ -169,6 +169,11 @@ zh_tw:
employment:
type1: 待業中
type2: 就業中
employee_identity_title: 應徵身分
employee_identity:
type1: 一般應徵者
type2: 實習生
type3: 交換學生
website: 網址
avatar: 上傳圖片
address: 地址