.qi_header
  .right= link_to ic(:plus)+' Ajouter', new_admin_p_serial_num_type_path(), :class => "btn btn-primary btn-ap-add", :remote => true
  %h1
    =PSerialNumType.human rescue ""
    

      
.qi_search_row
  =form_tag "", :method => "get",  :onsubmit => "" do
    =hidden_field_tag :column, params[:column]
    =hidden_field_tag :direction, params[:direction]

    %table
      %tr
        %td Type :
        %td=select_tag "search[name]", options_for_select([["",""],["Aucune","null"]]+PSerialNumType.pluck(:name, :id), params[:search][:name]), class: "custom-select"

    =render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @p_serial_num_types}


=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @p_serial_num_types}



