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