From 326c5f1ec06af664977b281069f8175ed9a5207a Mon Sep 17 00:00:00 2001 From: service Date: Thu, 2 Aug 2018 16:44:45 +0800 Subject: [PATCH] added employee_identity and some other changes to recruitments --- app/controllers/recruitments_controller.rb | 4 ++++ app/models/employee_profile.rb | 1 + .../recruitments/_employee_form.html.erb | 20 +++++++++++++++++-- config/locales/en.yml | 5 +++++ config/locales/zh_tw.yml | 5 +++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/app/controllers/recruitments_controller.rb b/app/controllers/recruitments_controller.rb index c80a710..8aed7b6 100644 --- a/app/controllers/recruitments_controller.rb +++ b/app/controllers/recruitments_controller.rb @@ -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"), diff --git a/app/models/employee_profile.rb b/app/models/employee_profile.rb index 2453019..f60a4f2 100644 --- a/app/models/employee_profile.rb +++ b/app/models/employee_profile.rb @@ -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 diff --git a/app/views/recruitments/_employee_form.html.erb b/app/views/recruitments/_employee_form.html.erb index 7a3cb05..322d24b 100644 --- a/app/views/recruitments/_employee_form.html.erb +++ b/app/views/recruitments/_employee_form.html.erb @@ -97,8 +97,8 @@ <%= fe.text_field :phone_number, :class => "form-control" %> - - + +
@@ -110,6 +110,22 @@
+ + +
+ +
+ + + +
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index 19bb890..b623d1d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 396a65a..45c4064 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -169,6 +169,11 @@ zh_tw: employment: type1: 待業中 type2: 就業中 + employee_identity_title: 應徵身分 + employee_identity: + type1: 一般應徵者 + type2: 實習生 + type3: 交換學生 website: 網址 avatar: 上傳圖片 address: 地址