fix for date

This commit is contained in:
Harry Bomrah 2015-09-15 16:13:02 +08:00
parent 441d3fe32e
commit 5731fa0e84
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
<div class="control-group">
<label class="control-label muted"><%= t(:start_date) %></label>
<div class="controls">
<%= f.datetime_picker :postdate, :no_label => true %>
<%= f.datetime_picker :postdate, :no_label => true, :new_record => @ad_image.new_record? %>
</div>
</div>
@ -85,7 +85,7 @@
<div class="control-group">
<label class="control-label muted"><%= t(:end_date) %></label>
<div class="controls">
<%= f.datetime_picker :deadline, :no_label => true %>
<%= f.datetime_picker :deadline, :no_label => true, :new_record => @ad_image.new_record? %>
</div>
</div>