Sha256: c251852103c52c3139bc1899b6c61139007f88d9ba174d2048fce22c4bf59f8a

Contents?: true

Size: 1.17 KB

Versions: 31

Compression:

Stored size: 1.17 KB

Contents

<%= bootstrap_form_for document, url: spotlight.polymorphic_path([current_exhibit, document]), html: {:'data-form-observer' => true, multipart: true} do |f| %>
<div class="edit-fields">

  <%= f.fields_for :sidecar, document.sidecar(current_exhibit) do |c| %>
    <%= c.check_box :public %>
  <% end %>

  <%= f.fields_for :uploaded_resource do |r| %>
    <%= r.url_field :url, type: "file", help: t('.url-field.help', extensions: Spotlight::Engine.config.allowed_upload_extensions.join(' ')), label: "File" %>
  <% end if document.uploaded_resource? %>

  <%= render partial: 'edit_sidecar', locals: { document: document, f: f } %>

  <% if can? :tag, current_exhibit %>
  <div class="edit-tags">
  <%= f.text_field :exhibit_tag_list, value: f.object.sidecar(current_exhibit).tags_from(current_exhibit).to_s, data: { autocomplete_tag: true, autocomplete_url: exhibit_tags_path(current_exhibit, format: 'json')} %>
  </div>
  <% end %>
  <div class="form-actions">
    <div class="primary-actions">
      <%= cancel_link document, spotlight.polymorphic_path([current_exhibit, document]), class: 'btn-sizing' %>
      <%= f.submit nil, class: 'btn btn-primary' %>
      </div>
  </div>
</div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

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