-@home_slider_slide.start_at = @home_slider_slide.start_at.in_time_zone if @home_slider_slide.start_at?
-@home_slider_slide.end_at = @home_slider_slide.end_at.in_time_zone if @home_slider_slide.end_at?

=semantic_form_for [:admin, @home_slider_slide], :remote => true do |f|
  .content
    =f.inputs do
     
      =f.hidden_field :home_slider_id
      =f.input :enabled, :label => "Activé ?"
      
      =f.input :image_file_id, :label => "Image :", :as => :qi_image_select
      =f.input :title, :label => "Titre :"
      =f.input :blur_color, :label => "Couleur de fond :"
      = f.input :start_at, :label => "Début :", :as => :qi_datetime_picker
      = f.input :end_at, :label => "Fin :", :as => :qi_datetime_picker
      
      =f.input :url, :label => "Url :"
      
      =f.input :lang_sites, :label => "Langues :", :as => :check_boxes
    
  .actions
    =f.submit "sauvegarder", :class => "btn btn-primary"
  