Sha256: 9d09783f549cb7669627b215764dad235fcf0ebb58d2f116fd027b3bf547f69a
Contents?: true
Size: 1.77 KB
Versions: 2
Compression:
Stored size: 1.77 KB
Contents
<% page = f.object %> <li class="dd-item dd3-item" data-id="<%= page.id %>"> <div class="dd3-content card page-admin"> <div class="dd-handle dd3-handle"><%= t :drag %></div> <div class="card-body main row page"> <div class="col-sm-8"> <%= f.hidden_field :id %> <%= f.hidden_field :weight, data: {property: "weight"} %> <h3 class="h6 card-title"> <span class="publish-control"> <%= f.check_box :published, inline: true, hide_label: true %> </span> <span class="d-inline-block w-75" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']"> <a href="#edit-in-place" class="field-label edit-in-place"><%= page.title %></a> <%= f.hidden_field :title, value: page.title , class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true'} %> </span> </h3> </div> <div class="page-links col-sm-4"> <%= exhibit_view_link page, :class => 'btn btn-link' %> · <%= exhibit_edit_link page, :class => 'btn btn-link', data: { turbolinks: false } %> · <%= exhibit_delete_link page, :class => 'btn btn-link' %> </div> <%- if page.feature_page? -%> <%= f.hidden_field :parent_page_id, data: {property: "parent_page"} %> <% end %> </div> </div> <% 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 %> </li>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.0.0.alpha.2 | app/views/spotlight/pages/_page.html.erb |
blacklight-spotlight-3.0.0.alpha.1 | app/views/spotlight/pages/_page.html.erb |