<%# name: headmin/filters accepts block: yes parameters: url: base url to send filter query to %> <% action = local_assigns.has_key?(:url) ? url : request.url %>
<%= yield if block_given? %> <% default_params.each do |name, value| %> <%= hidden_field_tag(name.to_sym, value) %> <% end %>
<%= content_for :filters_buttons %>
<%= content_for :filters_templates %> <% if content_for :filters_menu %>
<% end %> <% if content_for(:filters_menu) && content_for(:filters_search) %> <% end %> <%= content_for :filters_search %>