<% provide(:page_title, @model.display_name.pluralize(I18n.default_locale)) -%>
<%= render 'shared/new_resource_button' %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= @model.display_name.pluralize(I18n.default_locale) %>
<% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties['type'] != 'adminpanel_file_field' && properties['type'] != 'has_many' %> <% end %> <% end %> <% end %> <% collection.each do |member| %> <% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties['type'] == "wysiwyg_field" %> <% elsif properties['type'] == 'belongs_to' %> <% elsif properties['type'] == 'boolean' %> <% elsif properties['type'] != 'adminpanel_file_field' && properties['type'] != 'has_many' %> <% end %> <% end %> <% end %> <% end %>
<%= properties['label'] %><%= I18n.t('actions') %>
<%= member.send(attribute).html_safe -%> <%= belong_to_object_name(member, attribute.split('_id').first) %> <%= member.send(attribute) ? I18n.t('action.is_true') : I18n.t('action.is_false') %><%= member.send(attribute) -%> <%= render 'shared/show_icon_button', resource: member %> <%= render 'shared/edit_icon_button', resource: member %> <%= render 'shared/delete_icon_button', resource: member %> <%= render 'shared/fb_icon_button', resource: member %> <%= render 'shared/twitter_icon_button', resource: member %>