<%- @model.attributes.each do |attr| -%> <%- end -%> <%% @<%= @model.plural_name %>.each do |<%= @model.singular_name %>| %> <%- @model.attributes.each do |attr| -%> <%- end -%> <%% end %>
<%%= t 'system.index_id' %> <%%= t 'system.index_edit' %><%%= t '<%= @model.plural_name %>.index_<%= attr.name %>' %><%%= t 'system.index_remove' %>
<%%= link_to <%= @model.singular_name %>.id, <%= @model.object_name %>_path(<%= @model.singular_name %>) <%= ", :class => 'lightbox various fancybox.ajax'" if options.ajax %> %> <%%= link_to t('system.index_edit_label'), edit_<%= @model.object_name %>_path(<%= @model.singular_name %>) <%= ", :class => 'lightbox various fancybox.ajax'" if options.ajax %> %> <%- if !attr.references? -%> <%%= <%= @model.singular_name %>.<%= attr.name %> %> <%- elsif attr.belongs_to? || attr.nested_one? -%> <%%= <%= @model.singular_name %>.<%= attr.type.singular_name %>.<%= attr.reference %> %> <%- elsif attr.has_many? or attr.has_and_belongs_to_many? or attr.nested_many? -%>
    <%% <%= @model.singular_name %>.<%= attr.type.plural_name %>.each do |<%= attr.type.singular_name %>| %>
  • <%%= <%= attr.type.singular_name %>.<%= attr.reference %> %>
  • <%% end %>
<%- end -%>
<%%= link_to t('system.index_remove_label'), <%= @model.to_route_object %>, :method => :delete, <%= ':remote => true,' if options.ajax %> :data => {:confirm => t('system.index_confirm_deletion')} %>
<%%= pagination_footer @<%= @model.plural_name %> %>