Sha256: d13b2ed88b8e794ce3721c0ccf196a13debb2d25ee0e4bdb2e53d220bfe9aca8

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'pages' %>" id="pages">
  <p class="instructions"><%= t('.help_html') %></p>

  <%= bootstrap_form_for @exhibit, url: polymorphic_path([:update_all, @exhibit, :pages]), layout: :horizontal, control_col: 'col-sm-10', html: {:'data-form-observer' => true} do |f| %>
    <div class="translation-home-page-settings">
      <%= render Spotlight::Translations::SubheadingComponent.new(key: 'pages.home_page.label') %>

      <%= render 'pages_table', pages: [current_exhibit.home_page], f: f %>
    </div>

    <% if current_exhibit.feature_pages.any? %>
      <div class="translation-feature-page-settings">
        <%= render Spotlight::Translations::SubheadingComponent.new(key: 'pages.feature_pages.label') %>

        <%= render 'pages_table', pages: current_exhibit.feature_pages.for_default_locale, f: f %>
      </div>
    <% end %>

    <% if current_exhibit.about_pages.any? %>
      <div class="translation-about-page-settings">
        <%= render Spotlight::Translations::SubheadingComponent.new(key: 'pages.about_pages.label') %>

        <%= render 'pages_table', pages: current_exhibit.about_pages.for_default_locale, f: f %>
      </div>
    <% end %>
    <div class="form-actions">
      <div class="primary-actions">
        <%= f.submit nil, class: 'btn btn-primary' %>
      </div>
    </div>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-4.6.1 app/views/spotlight/translations/_pages.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/translations/_pages.html.erb