Sha256: 4afffd8d26c2b0e6635f12654191be0f4544b893935057a9562c43e9e5a9c216

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

<%= render 'spotlight/shared/curation_sidebar' %>
<div id="content" class="col-md-9">
<%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_blacklight_configuration_path(@exhibit), style: :horizontal, right: "col-sm-5" do |f| %>
    <div class="row">
      <h1><%= t('spotlight.curation.header') %></h1>
    </div>
    <div class="row">
      <div class="col-sm-5">
        <h2><small><%= t('spotlight.curation.metadata_fields.header') %></small></h2>
      </div>
      <div class="col-sm-2">
        <%= f.submit nil %>
      </div>
    </div>

    <table class="table table-striped">
      <thead>
        <tr>
          <th><%= t :'spotlight.curation.metadata_fields.label' %></th>
          <th><%= t :'spotlight.curation.metadata_fields.view.show', default: t(:'blacklight.search.view.show') %></th>
          <% @exhibit.blacklight_configuration.default_blacklight_config.view.keys.each do |type| %>

          <th><%= t "spotlight.curation.metadata_fields.view.#{type}", default: t("blacklight.search.view.#{type}") %></th>
          <% end %>
        </tr>
      </thead>
      <tbody>
        <%= f.fields_for :index_fields do |idxf| %>
          <% @exhibit.blacklight_configuration.all_index_fields.each do |key, config| %>
              <tr>
                <%= idxf.fields_for key do |field| %>
                  <td><%= config.label %></td>
                  <td><%= field.check_box :show, checked: (@exhibit.blacklight_configuration.index_fields[key] || {})[:show], label: "" %></td>
                  <% @exhibit.blacklight_configuration.default_blacklight_config.view.keys.each do |type| %>
                  <td><%= field.check_box type, checked: (@exhibit.blacklight_configuration.index_fields[key] || {})[type], label: "" %></td>
                  <% end %>
                <% end %>
              </tr>
          <% end %>
        <% end %>
     </tbody>
   </table>
<% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.1 app/views/spotlight/blacklight_configurations/edit_metadata_fields.html.erb