Sha256: 275a090da5ade43baad2ce9d2edaea5ebea8cd32298b563cae6b0152d365c603

Contents?: true

Size: 1.99 KB

Versions: 30

Compression:

Stored size: 1.99 KB

Contents

<div class="modal fade" id="remove-tags-modal" tabindex="-1" role="dialog" aria-labelledby="remove-tag-modal" aria-hidden="true">
  <div class="modal-dialog">
  <%= bootstrap_form_for([:visibility, current_exhibit], url: remove_tags_exhibit_bulk_actions_path(current_exhibit), method: 'post') do |f| %>
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="remove-tag-modal"><%= t(:'spotlight.bulk_actions.remove_tags.heading') %></h4>
        <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <%= t(:'spotlight.bulk_actions.remove_tags.description_html', count: @response.total) %>
        <% facet = @response.aggregations[blacklight_config.facet_fields['exhibit_tags'].field] %>

        <% if facet.items.any? %>
          <h5><%= t(:'spotlight.bulk_actions.remove_tags.assigned') %></h5>
        <% end %>
        <% facet.items.each do |facet_item| %>
          <div class="badge badge-info">
            <%= "#{facet_item.value} (#{facet_item.hits})" %>
          </div>
        <% end %>

        <div class="form-group mt-4">
          <%= label_tag :tags, t(:'spotlight.bulk_actions.remove_tags.label') %>
          <%= text_field_tag :tags, '', class: 'form-control', data: { autocomplete_tag: true, autocomplete_url: exhibit_tags_path(current_exhibit, format: 'json')} %>
        </div>
        <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search) %>
      </div>
      <div class="modal-footer d-flex flex-row-reverse justify-content-start">
        <%= f.submit t(:'spotlight.bulk_actions.remove'), class: 'btn btn-primary', data: { confirm: t(:'spotlight.bulk_actions.confirm') } %>
        <button type="button" class="btn btn-link" data-dismiss="modal"><%= t :cancel %></button>
      </div>
    </div>
    <% end %>
  </div>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.1 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.4.0 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.3.0 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.2.0 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.1.0 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.0.3 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.0.2 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.0.1 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.0.0 app/views/catalog/_remove_tags.html.erb
blacklight-spotlight-3.0.0.rc6 app/views/catalog/_remove_tags.html.erb