From 8398bb2c65ad39989bf8510c6775468e97f04c94 Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Mon, 16 Oct 2023 10:51:51 +0800 Subject: [PATCH] fixed date format --- app/helpers/admin/seminars_field_helper.rb | 2 +- .../admin/seminars/_seminar_signup_render_table.html.erb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/helpers/admin/seminars_field_helper.rb b/app/helpers/admin/seminars_field_helper.rb index b520100..93c9fa2 100644 --- a/app/helpers/admin/seminars_field_helper.rb +++ b/app/helpers/admin/seminars_field_helper.rb @@ -169,7 +169,7 @@ module Admin::SeminarsFieldHelper key = can_muti_lang_input_for_sm? ? "#{key}" : I18n.locale place_holder= typeD["placeholder"][key] rescue '' name1 = can_muti_lang_input_for_sm? ? (get_field_name_base + "[#{key}]") : get_field_name_base - text_area_tag(name1, value, @markup_options.merge(:placeholder=>place_holder,:class=>'input-medium form-control', :maxlength=> 300)) + text_area_tag(name1, value, @markup_options.merge(:placeholder=>place_holder,:class=>'input-medium form-control', :maxlength=> 300, :style => "width:500px;height:200px")) end end diff --git a/app/views/admin/seminars/_seminar_signup_render_table.html.erb b/app/views/admin/seminars/_seminar_signup_render_table.html.erb index bcdf2f1..f80e4c2 100644 --- a/app/views/admin/seminars/_seminar_signup_render_table.html.erb +++ b/app/views/admin/seminars/_seminar_signup_render_table.html.erb @@ -78,6 +78,13 @@ val = "#{t("seminar_signup.signup_not_confirmed")}" end %> + <% elsif names[1] == 'signup_confirmed_date' %> + <% val = seminar_signup.signup_confirmed_date.strftime("%Y/%m/%d %H:%M") rescue "" + %> + <% elsif names[1] == 'is_confirmed_date' %> + <% + val = seminar_signup.is_confirmed_date.strftime("%Y/%m/%d %H:%M") rescue "" + %> <% elsif names[1] != 'recaptcha' %> <% val = seminar_signup.send("#{names[1]}") %> <% end %>