Sha256: efa534f9546afd8f5e0d0806feca95e6997d28b0161b14ed4bb404fea791ff91

Contents?: true

Size: 1.77 KB

Versions: 7

Compression:

Stored size: 1.77 KB

Contents

<%= curation_page_title t(:"spotlight.pages.index.#{page_collection_name}.header") %>
<%= bootstrap_form_for @exhibit, url: polymorphic_path([:update_all, @exhibit, page_collection_name.to_sym]), layout: :horizontal, control_col: 'col-sm-10', html: {:'data-form-observer' => true} do |f| %>

    <%= render partial: 'header', locals: {f: f} %>
    <h2 class="mt-4"><%= t :'.pages_header' %></h2>
    <p class="instructions"><%= t :'.instructions' %></p>
    <div class="panel-group dd <%= page_collection_name %>_admin" id="nested-pages" data-behavior="nestable" <%= nestable_data_attributes(page_collection_name).html_safe %> >
      <ol class="dd-list">
        <%= f.fields_for page_collection_name do |p| %>
          <%- if p.object.about_page? || p.object.top_level_page? -%>
            <%= render partial: 'page', locals: {f: p, parent_form: f} %>
          <%- end -%>
        <% end %>
      </ol>
    </div>
    <div class="form-actions float-right">
      <div class="primary-actions">
        <%= button_tag action_label(page_collection_name, :update_all), class: "btn btn-primary", disabled: disable_save_pages_button? %>
      </div>
    </div>
<%- end -%>
<div>
  <%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name.to_sym]), html: {class: "expanded-add-button"} do |f|%>
    <a href='#add-new' class="btn btn-primary" data-turbo="false" data-turbolinks="false" data-expanded-add-button="true" data-field-target="[data-title-field]">
      <%= t(:'.new_page') %> <%= blacklight_icon('chevron_right') %>
      <span data-title-field="true" class="input-field">
        <%= f.text_field(:title) %>
        <%= f.submit t(:'.save'), data: {behavior: "save"} %>
        <%= f.submit t(:'.cancel'), data: {behavior: "cancel"} %>
      </span>
    </a>
  <%- end -%>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta10 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta6 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta5 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta4 app/views/spotlight/pages/_order_pages.html.erb