Sha256: a703641217b5e8a785cb1be2059e8dd4805dbef98d88f9c887d6509d1379232d

Contents?: true

Size: 1.81 KB

Versions: 5

Compression:

Stored size: 1.81 KB

Contents

<% if can? :import_translations, Spotlight::Exhibit %>
  <div class="row">
    <div class="col-md-12 mb-5">
      <h2><%= t(:'.header') %></h2>
      <p class="instructions"><%= t(:'.description') %></p>
      <%= bootstrap_form_for current_exhibit, url: spotlight.import_exhibit_translations_path(current_exhibit), html: { class: 'mb-3', multipart: true } do |f| %>
        <div class="container-fluid">
          <div class="row">
            <div class="col-12 col-md-3 text-md-right text-md-end">
              <%= f.label :value, t(".import_label"), class: 'col-form-label' %>
            </div>
            <div class="col-12 col-md-9">
              <div class="input-group">
                <%= file_field_tag :file, class: 'form-control' %>
                <%= hidden_field_tag :tab, 'import', id: nil %>
                <div class="input-group-append">
                  <%= f.submit t(:'.import_submit'), class: 'btn btn-primary rounded-0 rounded-end' %>
                </div>
              </div>
            </div>
          </div>
        </div>
      <% end %>
      <div class="container-fluid">
        <div class="row">
          <div class="col-form-label col-12 col-md-3 text-md-right text-md-end">
            <%= content_tag :span, t(".export_label") %>
          </div>
          <div class="col-12 col-md-9">
            <%= link_to t(:'.export_current_locale', language: t(:"locales.#{@language}")), spotlight.exhibit_translations_path(current_exhibit, format: "yaml", locale: @language), class: 'btn btn-primary mr-3 me-3' %>
            <%= link_to t(:'.export_default_locale', language: t(:"locales.#{I18n.default_locale}")), spotlight.exhibit_translations_path(current_exhibit, format: "yaml", locale: I18n.default_locale), class: 'btn btn-primary' %>
          </div>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-4.7.1 app/views/spotlight/translations/_import.html.erb
blacklight-spotlight-4.7.0 app/views/spotlight/translations/_import.html.erb
blacklight-spotlight-4.6.1 app/views/spotlight/translations/_import.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/translations/_import.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/translations/_import.html.erb