Sha256: 93e21bee035bab3d65b895260cb12d7a4688fecc51a3d5ef2a3dd5321502569c
Contents?: true
Size: 1008 Bytes
Versions: 21
Compression:
Stored size: 1008 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 %> <div class="page-links"> <%= exhibit_view_link page %> · <%= exhibit_edit_link page, data: { turbolinks: false, turbo: false } %> · <%= exhibit_delete_link page %> </div> <%- 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
21 entries across 21 versions & 1 rubygems