From 7bcdde4268051e49d397f7a3d60f49f4dc58341a Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 30 Dec 2016 16:18:57 +0800 Subject: [PATCH] added date range --- app/views/admin/news/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/news/_form.html.erb b/app/views/admin/news/_form.html.erb index d074ef2..976cf05 100644 --- a/app/views/admin/news/_form.html.erb +++ b/app/views/admin/news/_form.html.erb @@ -84,14 +84,14 @@
- <%= f.datetime_picker :postdate, :no_label => true, :new_record => @news_bulletin.new_record? %> + <%= f.datetime_picker :postdate, :no_label => true, :new_record => @news_bulletin.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
- <%= f.datetime_picker :deadline, :no_label => true, :new_record => @news_bulletin.new_record? %> + <%= f.datetime_picker :deadline, :no_label => true, :new_record => @news_bulletin.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>