Sha256: 405057194ef03e28e0ff601dceef9668e7de78b9a0821a125a45e8556a376475
Contents?: true
Size: 778 Bytes
Versions: 14
Compression:
Stored size: 778 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 btn-secondary' %> <%= 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
14 entries across 14 versions & 1 rubygems