Sha256: 1f81810999262d25143ca5dba78007c747de6f1cbaa836ea17dde9642e9ef9fb

Contents?: true

Size: 980 Bytes

Versions: 5

Compression:

Stored size: 980 Bytes

Contents

<%= tag.section(**html_attributes) do %>
  <% if collection.errors.any? %>
    <header>
      <% collection.errors.each do |error| %>
        <% next unless error.type == :unknown %>
        <div class="error">Sorry, we don&rsquo;t support the <code><%= error.attribute %></code> filter.</div>
      <% end %>
    </header>
  <% end %>
  <div class="content">
    <% if show_values? %>
      <h4>Possible values for <code><%= current_key %>:</code></h4>
      <ul>
        <% values_for(current_key).each do |value| %>
          <li><code><%= format_value(value) %></code></li>
        <% end %>
      </ul>
    <% else %>
      <h4>Available filters:</h4>
      <dl>
        <% available_filters.each do |key, description| %>
          <dt><code><%= key %>:</code></dt>
          <dd>Filter on values for <%= description.downcase %></dd>
        <% end %>
      </dl>
    <% end %>
  </div>
  <% if footer? %>
    <footer>
      <%= footer %>
    </footer>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katalyst-tables-3.4.1 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.4.0 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.3.4 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.3.3 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.3.2 app/components/katalyst/tables/query/modal_component.html.erb