Sha256: a3d7dcb7dadb47c88593e5d0fa367966147b71fdab8c3cfb98e49dd1cf1dbbd1

Contents?: true

Size: 772 Bytes

Versions: 31

Compression:

Stored size: 772 Bytes

Contents

<% if can? :update_solr, current_exhibit %>
  <%= bootstrap_form_for([current_exhibit, @resource.becomes(Spotlight::Resources::JsonUpload)], url: spotlight.exhibit_solr_update_path(current_exhibit), layout: :horizontal, label_col: 'col-md-2', control_col: 'col-sm-6 col-md-6', html: { class: 'item-upload-form', multipart: true } ) do |f| %>
    <%= f.url_field :json, type: "file", label: t('.file_label') %>
    <div class="form-actions">
      <div class="primary-actions">
        <%= cancel_link @resource, :back, class: 'btn-sizing' %>
        <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
      </div>
    </div>
  <% end %>
<% else %>
  <div class="alert alert-info">
    Uploading raw documents is restricted to site administrators.
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

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