Sha256: 3bf4bb0b70c13dc4fdaabdb8d0904c7c0aa3b2cc956d0abae86038665c980b3b

Contents?: true

Size: 636 Bytes

Versions: 1

Compression:

Stored size: 636 Bytes

Contents

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

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

    <p>
      <%= f.label :article_list_id %><br/>
      <span class="input-wrap"><%= f.collection_select :article_list_id, ArticleList.published.all, :id, :name, :prompt => 'Choose an Article List' %></span>
    </p>

    <p>
      <%= f.label :category %><br/>
      <span class="input-wrap"><%= f.select :category, component.categories, :include_blank => true %></span>
    </p>

  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noodall-articles-1.0.0 app/views/admin/components/_latest_articles.html.erb