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