Sha256: 86cd37527e631a1de2bacb5d63682b6edc78836b79717e1012103bed74cb94ee

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

<%= fields_for :node do |f| %>
<%=   f.fields_for slot_name, component do |f| %>
  <%= f.hidden_field :_type %>
  <%= error_messages_for :object => component %>

  <p>
    <%= f.label :title %><br />
    <span class="input-wrap"><%= f.text_field :title %></span>
  </p>

  <p class="file-selectable">
    <% unless component.asset.nil? %>
    <span class="file-detail"><%= component.asset.image? ? image_tag( component.asset.url('70x70#', :jpg)  ) : asset_icon(component.asset) %></span>
    <% end -%>
    <span class="select-file" data-file-types="images">Select File</span>
    <%= f.hidden_field :asset_id, :class => "asset_id" %>
  </p>

  <p>
    <%= f.label :content %><br />
    <span class="input-wrap"><%= f.text_area :content, :cols => 40, :rows => 4, :class => 'lite-editor' %></span>
  </p>
  <p>
    <%= f.label :link %><br />
    <span class="input-wrap">
      <%= f.text_field :link %><br/>
      <span class="link-node">Content</span> |
      <span class="link-asset">Asset</span>
    </span>
  </p>
  <p>
    <%= f.label :link_label %><br />
    <span class="input-wrap"><%= f.text_field :link_label %></span>
  </p>

<%   end
   end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
noodall-components-general-content-0.0.5 app/views/admin/components/_general_content.html.erb
noodall-components-general-content-0.0.4 app/views/admin/components/_general_content.html.erb
noodall-components-general-content-0.0.3 app/views/admin/components/_general_content.html.erb