%tr.m_odr_file_roulage_form.field
  %td= form.input :date, :label => "date :" , :as => :date
  
  -if form.object.date?
    %td= form.input :m_event_id, :label => "Journée de roulage :", :as => :date, :collection => MEvent.order("start_at").where("start_at <= ? and end_at >= ?", form.object.date, form.object.date).all, :member_label => :member_label, :as => :select
    
  -else
    %td= form.input :m_event_id, :label => "Journée de roulage :", :as => :date, :collection => MEvent.all, :member_label => :member_label, :as => :select
  
            
  %td.actions=link_to_remove_fields ic(:"trash-o"), form