<% provide(:page_title, @model.display_name) -%>
<%= link_to( content_tag(:div, content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, "Crear #{@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.form_attributes.each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] != "adminpanel_file_field" %> <% end %> <% end %> <% end %> <% collection.each do |member| %> <% @model.form_attributes.each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] == "wysiwyg_field" %> <% elsif properties["type"] != "adminpanel_file_field" %> <% end %> <% end %> <% end %> <% end %>
<%= properties["name"] %><%= I18n.t("actions") %>
<%= member.send(attribute).html_safe -%><%= 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.edit") ) %> <%= link_to( content_tag( :i, nil, :class => 'icon-remove' ), [member], :title => I18n.t("action.delete"), :id => "category-delete", :method => :delete, :data => { :confirm => "Eliminar #{@model.display_name}?" } ) %>