added date range

This commit is contained in:
Harry Bomrah 2016-12-30 16:18:57 +08:00
parent ada3d99396
commit 7bcdde4268
1 changed files with 2 additions and 2 deletions

View File

@ -84,14 +84,14 @@
<div class="control-group">
<label class="control-label muted"><%= t(:start_date) %></label>
<div class="controls">
<%= 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"} %>
</div>
</div>
<div class="control-group">
<label class="control-label muted"><%= t(:end_date) %></label>
<div class="controls">
<%= 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"} %>
</div>
</div>