From 4d0ba23f55a8f66dfa5c0f86d7d801008088c19d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 4 Aug 2016 16:33:25 +0800 Subject: [PATCH] form date fields fix --- app/views/admin/seminars/_form.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/admin/seminars/_form.html.erb b/app/views/admin/seminars/_form.html.erb index 43d812b..f6e9605 100644 --- a/app/views/admin/seminars/_form.html.erb +++ b/app/views/admin/seminars/_form.html.erb @@ -39,14 +39,14 @@
- <%= f.datetime_picker :seminar_start_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :seminar_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
- <%= f.datetime_picker :seminar_end_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :seminar_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
@@ -72,14 +72,14 @@
- <%= f.datetime_picker :signup_start_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :signup_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
- <%= f.datetime_picker :signup_end_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :signup_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
@@ -87,14 +87,14 @@
- <%= f.datetime_picker :contribute_start_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :contribute_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
- <%= f.datetime_picker :contribute_end_date, :no_label => true, :format=>"yyyy/MM/dd" %> + <%= f.datetime_picker :contribute_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>