Sha256: 7526da916365768543bdb5d887ce171ef2b3db3545f2a4b4dbe6a8c3f0caa5c9

Contents?: true

Size: 1.59 KB

Versions: 10

Compression:

Stored size: 1.59 KB

Contents

<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'groups' %>" id="groups">
  <%= bootstrap_form_for current_exhibit, url: spotlight.exhibit_translations_path(current_exhibit), layout: :horizontal do |f| %>
    <% # Add hidden fields for the language and tab so the redirect knows how to come back here %>
    <%= hidden_field_tag :language, @language %>
    <%= hidden_field_tag :tab, 'groups' %>

    <% current_exhibit.groups.each do |group| %>
      <% title_translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{group.slug}.title", locale: @language) %>
      <%= f.fields_for :translations, title_translation do |translation_fields| %>
        <%= translation_fields.hidden_field :key %>
        <%= translation_fields.hidden_field :locale %>
        <div data-translation-progress-item="true" class="row form-group browse-group-title">
          <%= translation_fields.label :value, group[:title], class: 'col-form-label col-12 col-sm-2' %>
          <div class="col-11 col-sm-9">
            <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
          </div>
          <div class="col-1">
            <% if title_translation.value.present? %>
              <span data-translation-present="true">
                <%= blacklight_icon('check', classes: 'translation-complete') %>
              </span>
            <% end %>
          </div>
        </div>
      <% end %>
    <% end %>

    <div class="form-actions">
      <div class="primary-actions">
        <%= f.submit nil, class: 'btn btn-primary' %>
      </div>
    </div>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-spotlight-3.2.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.1.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.0.rc6 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.0.rc5 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.0.rc4 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.0.0.rc3 app/views/spotlight/translations/_groups.html.erb