Sha256: ac052a49d530fd7b6975fb8d21ba094c4439743daa3cd154fc1643e2266ba0d7

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

<div id="filters">

  <ul>

    <%= form_tag nil, :method => :get do %>

      <% filters.each do |filter| %>

        <li>
          <select name="<%= filter[:filter] %>">
            <option value=""><%= filter[:message] %></option>
            <% filter[:items].each do |key, value| %>
            <% selected = "selected" if params[filter[:filter]].eql?(key.to_s) %>
            <option <%= selected %> value="<%= key %>"><%= value %></option>
            <% end %>
          </select>
        </li>

      <% end %>

    <%= hidden_field_tag :search, params[:search] %>

    <li>
      <%= submit_tag _t("Filter"), :name => nil %>
    </li>

    <% end %>

  </ul>

</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 app/views/admin/helpers/filters/_filters.html.erb
typus-1.0.0.pre7 app/views/admin/helpers/filters/_filters.html.erb
typus-1.0.0.pre6 app/views/admin/helpers/filters/_filters.html.erb