<% # headmin/filters # # ==== Options # * url - Base url to send filter query to. Defaults to current URL # # ==== Examples # Basic version # <%= render "headmin/filters" %#> # # With custom URL # <%= render "headmin/filters", url: admin_polls_path %#> action = local_assigns.has_key?(:url) ? url : request.url %>
<% default_params.except('page').each do |name, value| %> <%= hidden_field_tag(name.to_sym, value) %> <% end %> <%= yield if block_given? %>
<% if content_for :filters_menu %>
<% end %>
<%= content_for :filters_buttons %>
<%= content_for :filters_templates %>