Sha256: 9a392314f490bcef1e4d1c48643e733b7f13b454d0bbe203f612474bdeab3d4c

Contents?: true

Size: 1.08 KB

Versions: 54

Compression:

Stored size: 1.08 KB

Contents

<%= fields_for :node do |n| %>
<%=   n.fields_for slot_name, component do |f| %>

  <%= f.hidden_field :_type %>

  <p>
    <%= f.label :title, "Title" %><br />
    <span class="input-wrap"><%= f.text_field :title %></span>
  </p>
  <p>
    <%= f.label :description %><br />
    <span class="input-wrap"><%= f.text_area :description, :cols => 40, :rows => 4 %></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 :link %><br />
    <p>Remember to add <em>http://</em> to the beginning of external links (not part of this website).</p>
    <span class="input-wrap">
      <%= f.text_field :link %><br/>
      <span class="link-node">Content</span> |
      <span class="link-asset">Asset</span>
    </span>
  </p>

<%   end
   end %>

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
noodall-ui-0.5.15 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.14 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.13 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.12 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.11 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.4.11 demo/views/admin/components/_promo.html.erb
noodall-ui-0.4.10 demo/views/admin/components/_promo.html.erb
noodall-ui-0.5.10 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.9 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.4.9 demo/views/admin/components/_promo.html.erb
noodall-ui-0.5.8 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.4.8 demo/views/admin/components/_promo.html.erb
noodall-ui-0.4.7 demo/views/admin/components/_promo.html.erb
noodall-ui-0.5.7 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.6 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.5 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.4 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.3 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.2 spec/dummy/app/views/admin/components/_promo.html.erb
noodall-ui-0.5.1 spec/dummy/app/views/admin/components/_promo.html.erb