#image_files_container{ :data_reset_url => admin_image_files_path(:format => "js",:manager => params[:manager], :multiple => params[:multiple]), :data_current_url => url_for({}.merge!(params).merge!({:format => "js"}))}
  
  
  
  -if @tag
    .alert.alert-warning
      Images avec le tag :
      =@tag.name
  
  #image_files
    
    -params_for_url = params.dup
    -params_for_url.delete(:tag_search_ids)
    -params_for_url.delete(:q)
    -params_for_url.delete(:home)
    -params_for_url.delete(:page)

    .text_search
      =form_tag url_for({}.merge!(params_for_url).merge!({:format => "js"})), {:method => :post, :remote => true, :onsubmit => "$('.results').html('Chargement...')"} do
      
        -if params[:home]
          =hidden_field_tag :view_all_images, true
      
        =submit_tag "Rechercher", :class => "btn"
        .text-q-bloc=text_field_tag "q", params[:q], :class => "text-q", :placeholder => "Rechercher..."
        
        %p{:style => "clear:both;"}
      
    .results{:style => "padding-top:30px;position:relative;"}
      
      %p{:style => "clear:both;"}
    
    
      =render @image_files
    
      .stats{:style => "position:absolute;top:0;left:0;width:300px"}
        =@count
        -if @count > 1
          résultats
        -else
          résultat
        -if @count > 0
          en
          -@t2 = Time.now
          -@delta = @t2 - @t1
          =@delta
          s
      %p{:style => "clear:both;"}
  
      #pagination.qi_pagination
        = paginate @image_files, :remote => true
    
    
  :coffeescript
    init_image_files_drag();

  :scss
    .text_search{
      .text-q, .btn{
        padding:6px 10px;
        font-size:1.4em;
        display:block;
        
        box-sizing:border-box;
        
      }
      .text-q-bloc{
        margin-right:150px;
        
      }
      .text-q{
        width:100%;
        border:1px solid rgba(0,0,0,0.3);
        border-radius:8px 0 0px 8px;
        border-right:0;
        
      }
      .btn{
        float:right;
        width:150px;
        border-radius:0 8px 8px 0;
        color:white;
        text-transform:uppercase;
        background:#0085F6;
      }
    }