===entity_code===
<%%= t 'system.index_id' %> | <%%= t 'system.index_edit' %> | <%- @model.attributes.each do |attr| -%><%%= t '<%= @model.plural_name %>.index_<%= attr.name %>' %> | <%- end -%> <%- @model.associations.each do |assoc| -%><%%= t '<%= @model.plural_name %>.index_<%= assoc.model2.singular_name %>' %> | <%- end -%><%%= t 'system.index_remove' %> | <%% @<%= @model.plural_name %>.each do |<%= @model.singular_name %>| %>
---|---|---|---|---|
<%%= 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.attributes.each do |attr| -%><%%= <%= @model.singular_name %>.<%= attr.name %> %> | <%- end -%> <%- @model.associations.each do |assoc| -%>
<%- 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? -%>
|
<%- 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')} %> |