


=semantic_form_for [:admin, @share_image], :remote => true do |f| 
  .content
    %h3
      Créer un lien de partage

    = f.inputs do

      = f.input :description, :label => "Description :", :input_html => {:style => "height:100px;"}
      
      = f.input :password, :label => "Mot de passe :"
  
      =hidden_field_tag :ids, params[:ids]
      
    
    %p
      -count = @image_files.count
      =count
      images selectionnées
    %div
      -@image_files.limit(5).each do |image_file|
        =image_tag image_file.file.large.thumb
      -if count > 5
        et
        =count - 5
        de plus
    
    
  
  .actions= f.submit "Sauvegarder", :class => "btn btn-primary"

