%= fields_for :node do |f| %> <%= f.fields_for slot_name, component do |f| %> <%= f.hidden_field :_type %> <%= error_messages_for :object => component %>
<%= f.label :title %>
<%= f.text_field :title %>
<% unless component.asset.nil? %> <%= component.asset.image? ? image_tag( component.asset.url('70x70#', :jpg) ) : asset_icon(component.asset) %> <% end -%> Select File <%= f.hidden_field :asset_id, :class => "asset_id" %>
<%= f.label :content %>
<%= f.text_area :content, :cols => 40, :rows => 4, :class => 'lite-editor' %>
<%= f.label :link %>
<%= f.text_field :link %>
Content |
Asset
<%= f.label :link_label %>
<%= f.text_field :link_label %>