Sha256: 5b14d6696d8b8eede51f0288809ce51ab878f98a16698ff718029b8cb27f76d4

Contents?: true

Size: 1.74 KB

Versions: 15

Compression:

Stored size: 1.74 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]), 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]), 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

15 entries across 15 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc6 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc5 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc4 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc3 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc2 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.rc1 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.10 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.9 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.8 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.7 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.6 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.5 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.4 app/views/spotlight/pages/_order_pages.html.erb
blacklight-spotlight-3.0.0.alpha.3 app/views/spotlight/pages/_order_pages.html.erb