% use_page_title "Assets - #{content_type.display_name_plural}" %>
Assets
<%= form_for @search_filter, url: engine(content_type).polymorphic_path(build_path_for(content_type)), html: {class: 'form-search'}, method: :get do |f| %>
<%= f.text_field :term, class: "span6 search-query right", placeholder: "Search #{content_type.display_name_plural}" %>
<% end %>
<%= form_tag engine_aware_path(@search_filter.path), method: :put do %>
<%= render partial: 'layouts/cms/content_types', locals: {library: false, id: 'asset-selector-menu'} %>
<%= submit_tag "Publish", class: "right btn btn-small btn-primary primary-cta" if content_type.model_class.publishable? %>
<%= submit_tag "Delete", class: 'btn btn-small', data: {confirm: 'Are you sure you want to delete all these records?'} %>
<%= yield :bulk_actions if content_for?(:bulk_actions) %>
<%= @total_number_of_items %> ITEMS
<% end %>
<% if !@search_filter.term.blank? && @blocks.size == 0 %>
<% elsif @blocks.total_pages > 1 %>
<%= render_pagination @blocks, content_type, :order => params[:order], "search_filter[term]" => @search_filter.term %>
<% end %>