Sha256: 26ddcafbb762afab6fe74d4308a0baf60c4ac5a70189db6a19300a5f8c4c713e

Contents?: true

Size: 1.08 KB

Versions: 27

Compression:

Stored size: 1.08 KB

Contents

<%= bootstrap_form_for([current_exhibit, @resource.becomes(Spotlight::Resources::Upload)], 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 :url, type: "file", help: t('.url-field.help', extensions: Spotlight::Engine.config.allowed_upload_extensions.join(' ')), label: "File" %>
  <%= f.fields_for :data do |d| %>
    <% Spotlight::Resources::Upload.fields(current_exhibit).each do |config| %>
      <%= d.send(config.form_field_type, config.field_name, label: uploaded_field_label(config)) %>
    <% end %>
    <% current_exhibit.custom_fields.each do |custom_field| %>
      <%= d.text_field custom_field.field, label: custom_field.label %>
    <% end %>
  <% end %>
  <div class="form-actions">
    <div class="primary-actions">
      <%= cancel_link @resource, :back, class: 'btn btn-default' %>
      <%= f.submit t('.add_item_and_continue'), name: 'add-and-continue', class: 'btn btn-default' %>
      <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
blacklight-spotlight-2.7.2 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.7.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.7.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.6.1.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.6.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.6.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.5.2 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.5.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.5.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.4.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.4.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.3.3 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.3.2 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.3.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.3.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.2.1 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.2.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.1.0 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.0.2 app/views/spotlight/resources/upload/_form.html.erb
blacklight-spotlight-2.0.1 app/views/spotlight/resources/upload/_form.html.erb