From 6e77ef684d261b8f845cbb2ec4a021c6e72c53f7 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 18 Jan 2018 14:58:02 +0800 Subject: [PATCH] edit exchange fixed --- app/views/recruitments/_exchange_form.html.erb | 2 +- app/views/recruitments/editexchange.html.erb | 8 ++++++++ config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/views/recruitments/editexchange.html.erb diff --git a/app/views/recruitments/_exchange_form.html.erb b/app/views/recruitments/_exchange_form.html.erb index dd526d5..145267f 100644 --- a/app/views/recruitments/_exchange_form.html.erb +++ b/app/views/recruitments/_exchange_form.html.erb @@ -98,7 +98,7 @@
<%= f.label :min_credit_score, t("recruitment.min_credit_score"), :class => "col-sm-2 control-label" %>
- <%= f.number_field :min_credit_score, :class => "form-control", :max => 36, :min => 1 %> + <%= f.number_field :min_credit_score, :class => "form-control", :max => 500, :min => 1 %>
diff --git a/app/views/recruitments/editexchange.html.erb b/app/views/recruitments/editexchange.html.erb new file mode 100644 index 0000000..94c9dcc --- /dev/null +++ b/app/views/recruitments/editexchange.html.erb @@ -0,0 +1,8 @@ +
+ <%= render :partial => "dashboard_header" %> +

<%= t("recruitment.edit_exchange") %>

+
+ <%= form_for @job, url: "/recruit/#{@job.id.to_s}/updatejob", html: {:class => "form-horizontal main-forms"} do |f| %> + <%= render :partial => "exchange_form", locals: {f: f} %> + <% end %> +
\ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index b6b2f6a..6cfec04 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,6 +2,7 @@ en: module_name: recruitment: Recruitment recruitment: + edit_exchange: Edit Exchange show_jobs: Show Jobs number_of_positions_filled: Number of position filled number_of_registered_users: Number of registered users diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 79b0256..5c12e3e 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -2,6 +2,7 @@ zh_tw: module_name: recruitment: 招募 recruitment: + edit_exchange: Edit Exchange show_jobs: Show Jobs number_of_positions_filled: Number of position filled number_of_registered_users: Number of registered users