Sha256: 83bd78a57c61e048ee68c4771fc18019ca0327e4b6730278401502004b1e2c62

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 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">Select File</span>
    (<span class="types">Images</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

2 entries across 2 versions & 1 rubygems

Version Path
noodall-components-general-content-0.0.2 app/views/admin/components/_general_content.html.erb
noodall-components-general-content-0.0.1 app/views/admin/components/_general_content.html.erb