<% provide(:page_title, @model.collection_name) -%>
<%= render 'adminpanel/shared/new_resource_button' %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= @model.collection_name %>
<% if @model.is_sortable? %> <% end %> <% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% end %> <% end %> <% @collection = @collection.ordered if table_type(@model) == 'sortable' %> <% @collection.each do |member| %> <% cache ["#{member.class}-member", member] do %> data-url="<%= url_for [:move_to_position, member] %>" <% end %> > <% if @model.is_sortable? %> <% end %> <% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% end %> <% end %> <% end %> <% end %>
<%= properties['label'] %><%= I18n.t('actions') %>
<%= field_value(properties['type'], attribute, member) %> <%= render 'adminpanel/icons/show', resource: member %> <%= render 'adminpanel/icons/edit', resource: member %> <%= render 'adminpanel/icons/delete', resource: member %> <%= render 'adminpanel/icons/facebook', resource: member %>