-@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.input :lang_sites, :label => "Langues :", :as => :check_boxes
      =f.hidden_field :home_slider_id
      =f.input :enabled, :label => "Activé ?"
      =f.input :image_file_id, :label => "Image :", :as => :qi_image_select
      =#f.input :blur_image_id, :label => "Image floue :", :as => :qi_image_select
      =#f.input :blur_color, :label => "Couleur de fond :"
      =f.input :titre1, :label => "Titre :"
      =#f.input :titre2, :label => "Sous-titre :"
      =#f.input :article_id, :as => :select, :collection => (Hash[Article.order("id DESC").all.map{|a| [a.lang(@lang.slug).title,a.id]}]), :label => "Article associé :"
      =f.input :url, :label => "Url :"
      =f.input :description1, :label => "Description :"
      =#f.input :cta_text, :label => "Texte CTA :"

      


      
      = #f.input :start_at, :label => "Début :", :as => :qi_datetime_picker
      =# f.input :end_at, :label => "Fin :", :as => :qi_datetime_picker
      
      
      
      
    
  .actions
    =f.submit "sauvegarder", :class => "btn btn-primary"
  