Sha256: 59942d722adba748782c68e273a4cbb6c3854e9ba16cc2b1e603b580df18c31d

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

<%= render 'spotlight/shared/curation_sidebar' %>
<div id="content" class="col-md-9">
  <% @page_title = t :"spotlight.curation.#{page_collection_name}.header" %>
  <%= bootstrap_form_for @exhibit, url: polymorphic_path([:update_all, @exhibit, page_collection_name]), style: :horizontal, right: "col-sm-10" do |f| %>
    <h1><%= t :'spotlight.curation.header' %></h1>
    <div class="col-xs-2 pull-right">
      <%= button_tag(t(:"spotlight.curation.#{page_collection_name}.update"), class: "btn btn-default", disabled: @pages.empty?) %>
    </div>
    <h2 class="text-muted clearfix"><%= t :"spotlight.curation.#{page_collection_name}.header" %></h2>

    <%= render partial: 'header' %>
    <h3>Defined Pages</h3>
    <p>Select the pages you want to be shown. Drag and drop pages to change the order in which they are displayed in the sidebar.</p>
    <div class="panel-group dd <%= page_model %>_admin" id="nested-pages">
      <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>
  <%- end -%>
  <div>
    <%= link_to t(:'helpers.submit.new', :model => "Page"), new_polymorphic_path([@exhibit, page_model]), class: 'btn btn-primary' %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.1 app/views/spotlight/pages/index.html.erb