Sha256: 48825a14547e7db6eaba796da01f34363bfb8c7f85b5930aa7200cc6d9ca56d0

Contents?: true

Size: 1.61 KB

Versions: 24

Compression:

Stored size: 1.61 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 mb-3 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

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-5.0.0.pre.alpha2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-5.0.0.pre.alpha1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.7.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.7.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.6.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.4.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.6 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.5 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.4 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.3 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.3.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.2.0 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.1.2 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.1.1 app/views/spotlight/translations/_groups.html.erb
blacklight-spotlight-4.1.0 app/views/spotlight/translations/_groups.html.erb