Browse files

allow blank dates

  • Loading branch information...
1 parent 33bb3ff commit f28854fb2c184e8e1c891fc96fc75b227d1ca824 @han committed Feb 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/deliveries/_form.html.haml
View
4 app/views/deliveries/_form.html.haml
@@ -7,8 +7,8 @@
= f.number_field :order_quantity, :disabled => current_user.extern?
= f.number_field :actual_quantity
= f.text_field :tour_number
- = f.date_select :shipped_at, 'Shipped', {:start_year => 2011, :order => [:day, :month, :year]}, :class => 'span3', :disabled => current_user.extern?
- = f.date_select :delivered_at, 'Delivered', {:start_year => 2011, :order => [:day, :month, :year]}, :class => 'span3'
+ = f.date_select :shipped_at, 'Shipped', {:start_year => 2011, :order => [:day, :month, :year], :include_blank => true}, :class => 'span3', :disabled => current_user.extern?
+ = f.date_select :delivered_at, 'Delivered', {:start_year => 2011, :order => [:day, :month, :year], :include_blank => true}, :class => 'span3'
= f.actions do
= f.submit 'Submit delivery', :disable_with => 'Please wait...', :class => 'btn btn-danger'
= button_tag 'Cancel', :type => 'reset' , :class => 'btn'

0 comments on commit f28854f

Please sign in to comment.