%# # Collection This partial is used on the `index` and `show` pages to display a collection of resources in an HTML table. ## Local variables: - `collection_presenter`: An instance of [Administrate::Page::Collection][1]. The table presenter uses `ResourceDashboard::COLLECTION_ATTRIBUTES` to determine the columns displayed in the table - `resources`: An ActiveModel::Relation collection of resources to be displayed in the table. By default, the number of resources is limited by pagination or by a hard limit to prevent excessive page load times [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Collection %>
<%= t( "helpers.label.#{collection_presenter.resource_name}.#{attr_name}", default: resource_class.human_attribute_name(attr_name), ).titleize %> | <% end %>
---|
<%= render_field attribute %> | <% end %>