fixed date format

This commit is contained in:
Bomrah Harry 2023-10-16 10:51:51 +08:00
parent 11e6cf516b
commit 8398bb2c65
2 changed files with 8 additions and 1 deletions

View File

@ -169,7 +169,7 @@ module Admin::SeminarsFieldHelper
key = can_muti_lang_input_for_sm? ? "#{key}" : I18n.locale key = can_muti_lang_input_for_sm? ? "#{key}" : I18n.locale
place_holder= typeD["placeholder"][key] rescue '' place_holder= typeD["placeholder"][key] rescue ''
name1 = can_muti_lang_input_for_sm? ? (get_field_name_base + "[#{key}]") : get_field_name_base 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
end end

View File

@ -78,6 +78,13 @@
val = "<span class='label label-danger'>#{t("seminar_signup.signup_not_confirmed")}</span>" val = "<span class='label label-danger'>#{t("seminar_signup.signup_not_confirmed")}</span>"
end 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' %> <% elsif names[1] != 'recaptcha' %>
<% val = seminar_signup.send("#{names[1]}") %> <% val = seminar_signup.send("#{names[1]}") %>
<% end %> <% end %>