Sha256: 2e73ce238c2ed74e5f6fae89fbc28b478bc8ae1f106c40b7cfdde6a0bd07e787

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

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_examples? %>
      <h4>Possible values for <code><%= current_key %>:</code></h4>
      <dl>
        <% examples_for(current_key).each do |example| %>
          <dt><code><%= format_value(example.value) %></code></dt>
          <% if example.description.present? %><dd><%= example.description %></dd><% end %>
        <% end %>
      </dl>
    <% 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.6 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.4.5 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.4.4 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.4.3 app/components/katalyst/tables/query/modal_component.html.erb
katalyst-tables-3.4.2 app/components/katalyst/tables/query/modal_component.html.erb