<% provide(:page_title, @model.display_name) -%>
<%= link_to( content_tag(:div, content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, I18n.t("action.create") + " #{@model.display_name}", nil), :class => "btn btn-box span2"), { :controller => params[:controller], :action => "new" } ) %>
<%= content_tag(:i, nil, :class => @model.icon) %>
<%= @model.display_name %>
<% @model.display_attributes.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.each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] == "wysiwyg_field" %> <% elsif properties["type"] == "belongs_to" %> <% elsif properties["type"] != "adminpanel_file_field" && properties["type"] != "has_many" %> <% end %> <% end %> <% end %> <% end %>
<%= properties["name"] %><%= I18n.t("actions") %>
<%= member.send(attribute).html_safe -%> <%= parent_object_name(member, properties["model"]) %> <%= member.send(attribute) -%> <%= link_to( content_tag(:i, nil, :class => 'icon-zoom-in'), [member], :title => t("action.show") ) %> <%= link_to( content_tag(:i, nil, :class => 'icon-pencil'), [:edit, member], :title => t("action.update") + " #{@model.display_name}" ) %> <%= link_to( content_tag( :i, nil, :class => 'icon-remove' ), [member], :title => I18n.t("action.delete"), :id => "resource-delete", :method => :delete, :data => { :confirm => "Eliminar #{@model.display_name}?" } ) %>