<%= abstract_model.label %>
<%= form_for search_wrapper, :url => scoped_index_path, :html => { :method => :get, :novalidate => true } do |f| %> <%= render :partial => 'sunrise/shared/parent' %> <%= f.text_field :q %> <%= f.submit t('manage.search'), :class => "button" %> <% end %>
<% if abstract_model.search_available? %> <%= link_to t('manage.filter'), scoped_index_path, :class => "filter-but ddmenu", :rel => "filter" %> <% end %> <% unless abstract_model.without_index? %>
<%= content_tag :div, :class => 'tabs-item' do %> <% if abstract_model.current_list == :table %> <%= content_tag(:span, image_tag('sunrise/empty.gif'), :title => t('manage.buttons.table'), :class => "table") %> <% else %> <%= link_to image_tag('sunrise/empty.gif'), {:view=>"table"}, :class => "table", :title => t('manage.buttons.table') %> <% end %> <% end if abstract_model.config.available_index_views.include?(:table) -%> <%= content_tag :div, :class => 'tabs-item' do %> <% if abstract_model.current_list == :thumbs %> <%= content_tag(:span, image_tag('sunrise/empty.gif'), :title => t('manage.buttons.thumbs'), :class => "list") %> <% else %> <%= link_to image_tag('sunrise/empty.gif'), {:view=>"thumbs"}, :class => "list", :title => t('manage.buttons.thumbs') %> <% end %> <% end if abstract_model.config.available_index_views.include?(:thumbs) -%>
<% if abstract_model.sort_available? %>
<%= form_tag(scoped_index_path, :method => :get) do %> <%= select_tag "sort", options_from_collection_for_select(abstract_model.sort_fields, "value", "name", params[:sort]), :class => "chzn-select" %> <% end %> <%= submit_tag t('manage.search'), :class => "button", :style => "display:none;" %>
<% end %> <% if abstract_model.search_available? %> <%= render :partial => apply_scope("model_filter") %> <% end %> <% end %>