Sha256: 37093248a7523b38800ec9bbff4f575694ce15308ee829701e4f96a51fb6e804

Contents?: true

Size: 879 Bytes

Versions: 5

Compression:

Stored size: 879 Bytes

Contents

<% page = f.object %>
<%= render layout: 'spotlight/shared/dd3_item', locals: { id: page.id.to_s, field: f, label: page.title, label_method: :title, enabled_method: :published } do |_, section| %>
  <% case section when :additional_options %>
    <%= render Spotlight::EditViewLinksComponent.new(page:, delete_link: true) %>
    <%- if page.feature_page? -%>
      <%= f.hidden_field :parent_page_id, data: {property: "parent_page"} %>
    <% end %>
  <% when :nested_components %>
    <% if page.feature_page? and page.child_pages.present? %>
      <ol class="dd-list">
        <% page.child_pages.each do |child_page| %>
          <%= parent_form.fields_for page_collection_name, child_page do |p| %>
            <%= render partial: 'page', locals: {f: p, parent_form: parent_form} %>
          <% end %>
        <% end %>
      </ol>
    <% end %>
  <% end %>
<% end %>
</li>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-4.7.0 app/views/spotlight/pages/_page.html.erb
blacklight-spotlight-4.6.1 app/views/spotlight/pages/_page.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/pages/_page.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/pages/_page.html.erb
blacklight-spotlight-4.4.0 app/views/spotlight/pages/_page.html.erb