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