fix for dates

This commit is contained in:
Harry Bomrah 2015-09-15 16:12:32 +08:00
parent bccfe525de
commit 7ebdf7c3d7
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,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>
@ -135,7 +135,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>