<% provide(:page_title, t("action.view") + " #{@model.display_name.capitalize}") -%> <% breadcrumb_add( @model.display_name.capitalize.pluralize, { :controller => params[:controller], :action => "index" } ) %>
<%= content_tag(:i, nil, :class => @model.icon) %>
<%= @model.display_name.humanize %> <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), [:edit, resource], :title => t("action.edit") + " #{@model.display_name}" %>
    <% @model.form_attributes.each do |fields| %> <% fields.each do |attribute, properties| %> <% if properties["type"] != "adminpanel_file_field" %>
  • <%= properties["name"] %>
    <% if properties["type"] == "wysiwyg_field" %> <%= resource.send(attribute).html_safe -%> <% else %> <%= resource.send(attribute) -%> <% end %>
  • <% end %> <% end %> <% end %>
<% if @model.has_images? %>
<%= content_tag(:i, nil, :class => @model.icon) %>
GalerĂ­a: <%= @model.display_name.humanize %> <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), [:edit, resource], :title => t("action.edit") + " #{@model.display_name}" %>
<% end %>