Sha256: bf5d257a42444e12ba45bc7cab6172d5fa4c05a47ffced0adc421035a8eb8f20

Contents?: true

Size: 1.99 KB

Versions: 8

Compression:

Stored size: 1.99 KB

Contents

<% if new %>
  <%= active_element.component.new_button(
    component.model&.new,
    nested_for: nested_for,
    float: 'end',
    class: 'mb-3'
  ) %>
<% end %>


<% if title.present? %>
  <%= active_element.component.page_section_title(title) %>
<% end %>

<% if display_pagination %>
  <%=
    render partial: 'active_element/components/table/pagination',
           locals: { collection: collection, params: params, page_size: page_size, page_sizes: page_sizes }
  %>
<% end %>

<% if group %>
  <%= render partial: 'active_element/components/table/grouped_collection',
             locals: { component: component,
                       collection: collection,
                       fields: fields,
                       grouped_collection: component.grouped_collection,
                       grouping_field: group,
                       group_title: group_title,
                       show: show,
                       edit: edit,
                       destroy: destroy,
                       class_name: class_name,
                       style: style,
                       i18n: i18n,
                       row_class_mapper: row_class_mapper } %>
<% else %>
  <% if collection.try(:empty?) %>
    <p><i>(No items to display).</i></p>
  <% else %>
    <%= render partial: 'active_element/components/table/ungrouped_collection',
               locals: { component: component,
                         collection: collection,
                         fields: fields,
                         show: show,
                         edit: edit,
                         destroy: destroy,
                         class_name: class_name,
                         style: style,
                         i18n: i18n,
                         row_class_mapper: row_class_mapper } %>
  <% end %>
<% end %>

<% if footer_pagination %>
  <%=
    render partial: 'active_element/components/table/pagination',
           locals: { collection: collection, params: params, page_size: page_size, page_sizes: page_sizes }
  %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_element-0.0.31 app/views/active_element/components/table/collection.html.erb
active_element-0.0.30 app/views/active_element/components/table/collection.html.erb
active_element-0.0.29 app/views/active_element/components/table/collection.html.erb
active_element-0.0.28 app/views/active_element/components/table/collection.html.erb
active_element-0.0.27 app/views/active_element/components/table/collection.html.erb
active_element-0.0.26 app/views/active_element/components/table/collection.html.erb
active_element-0.0.24 app/views/active_element/components/table/collection.html.erb
active_element-0.0.23 app/views/active_element/components/table/collection.html.erb