From 4c6f188cf8fd61c4c67e9d702bf181cdf210f0c9 Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Wed, 18 Jul 2018 21:51:56 +0800 Subject: [PATCH] currency update --- app/models/recruitment_job.rb | 1 + app/views/recruitments/_employer_dashboard.html.erb | 2 +- app/views/recruitments/_job_form.html.erb | 8 ++++++++ config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/models/recruitment_job.rb b/app/models/recruitment_job.rb index ed01b98..068cdee 100644 --- a/app/models/recruitment_job.rb +++ b/app/models/recruitment_job.rb @@ -11,6 +11,7 @@ class RecruitmentJob field :other_conditions, localize: true field :expiry_date, type: DateTime field :salary #type1 => negotiable type2 => according to company rules + field :currency_type field :travel_assignment #type1 => Need to travel, type2 => occasionally, type3 => travelling not required field :working_time #type1 => Day Shift, type2 => Night Shift field :holiday_system #type1 => According to Company Rules, type2 => other diff --git a/app/views/recruitments/_employer_dashboard.html.erb b/app/views/recruitments/_employer_dashboard.html.erb index 5599f41..5e73fe2 100644 --- a/app/views/recruitments/_employer_dashboard.html.erb +++ b/app/views/recruitments/_employer_dashboard.html.erb @@ -11,7 +11,7 @@ <% if @jobsposted.blank? %> - <%= t("recruitment.no_jobs_posted") %> + <%= t("recruitment.no_jobs_posted") %> <% else %> <% @jobsposted.each do |job| %> diff --git a/app/views/recruitments/_job_form.html.erb b/app/views/recruitments/_job_form.html.erb index f9fae44..662ae27 100644 --- a/app/views/recruitments/_job_form.html.erb +++ b/app/views/recruitments/_job_form.html.erb @@ -106,6 +106,14 @@ + +
+ <%= f.label :currency_type, t("recruitment.currency_type"), :class => "col-sm-2 control-label" %> +
+ <%= f.select :currency_type, ["INR","TWD","USD"] ,{:class => "form-control"} %> +
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index 53db64c..19bb890 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -253,6 +253,7 @@ en: resume_text: Download CV gender_title: Gender martial_title: Marital Status + currency_type: Currency Type martial: type1: Un-Married type2: Married diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index db9ea7b..396a65a 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -255,6 +255,7 @@ zh_tw: resume_text: 下載履歷 gender_title: 性別 martial_title: 婚姻狀況 + currency_type: 貨幣類型 martial: type1: 未婚 type2: 已婚