Sha256: 531ca853aaf1f4105836d551a69f6913882f23849b6ac68c930aca6f90f54796

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

<div class="bot-bg">
  <div class="filt-bl">
    <%= link_to_function t('manage.model_filter.title'), "Manage.toggle_element('block_filter')", :class=>"dark-arr" %>
    
    <%= t('manage.model_filter.total_count') %>: <%= @records.total_count %>
    
    <%= content_tag(:div, :id => "block_filter", :class => "filt") do %>
      <%= simple_form_for search_wrapper, :url => scoped_index_path,  :html =>{ :method => :get, :novalidate => true } do |f| %>
        <%= render :partial => 'sunrise/shared/parent' %>
        
        <% abstract_model.list.groups[:search].fields.each do |field| %>
          <%= f.input field.name, field.input_options.merge(:required => false) if field.visible?(f.object) %>
        <% end %>
        
        <div class="buts">
          <%= content_tag(:button, :value => "search", :type => "submit", :name => "commit", :class => "gr cupid-green") do %>
            <%= t('manage.model_filter.search') %>
          <% end %>
                          
          <%= link_to t('manage.model_filter.clear'), scoped_index_path, :class=>"erase" %>
        </div>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-0.3.0.rc2 app/views/sunrise/manager/table/_model_filter.html.erb
sunrise-cms-0.3.0.rc app/views/sunrise/manager/table/_model_filter.html.erb