Sha256: 84a8044fbfcaca7c4684b218f3e23e0722972e00c9c54dd3a3fe79a4d02b7cad

Contents?: true

Size: 1.75 KB

Versions: 21

Compression:

Stored size: 1.75 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-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

21 entries across 21 versions & 1 rubygems

Version Path
blacklight-spotlight-3.5.0.4 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.5.0.3 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta3 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.6.0.beta1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.5.0.2 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.5.0.1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.5.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.4.1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.4 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.3 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.2.2 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.2.1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.2 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.4.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.3.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.2.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.1.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.3 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.2 app/views/spotlight/pages/_order_pages.html.erb