Sha256: 69fc4a59dff2779fa3cfb7b776bfabc3394dd4dada5e8220640f0e5d64feb769

Contents?: true

Size: 1.6 KB

Versions: 23

Compression:

Stored size: 1.6 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', id: nil %>

    <% 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

23 entries across 23 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta10 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.5.0.4 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.5.0.3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta6 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta5 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta4 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.6.0.beta1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.5.0.2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.5.0.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.5.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.4.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.4 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.2.2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.2.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-3.4.2 app/views/spotlight/translations/_groups.html.erb