Sha256: e1b10c6e2bddb1eb2442a16630bc2d8474adcf6049d2c009d6437ba0f08de236

Contents?: true

Size: 929 Bytes

Versions: 4

Compression:

Stored size: 929 Bytes

Contents

<h3><%= t('spotlight.resources.csv.header') %></h3>
<%= bootstrap_form_for [@resource.exhibit, @resource.becomes(Spotlight::Resources::Csv)], layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-5 col-md-5', :html => {:multipart => true }  do |f| %>

  <div class="form-group">
  <%# bootstrap_form_for's file_field doesn't use any of the bootstrap 
      goodness (bootstrap-ruby/rails-bootstrap-forms#49). Instead, we'll lie
      about the field type and change the attribute ourselves. %>
  <%= f.url_field :url, type: "file", help: link_to(t('.template'), [:template, @resource.exhibit, @resource.becomes(Spotlight::Resources::Csv)]) %>
  <%= f.hidden_field :url_cache %>
  </div>
  <div class="form-actions col-md-7 col-sm-7">
    <div class="primary-actions">
      <%= cancel_link @resource, :back, class: 'btn btn-default' %>
      <%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 app/views/spotlight/resources/csv/_form.html.erb
blacklight-spotlight-0.3.1 app/views/spotlight/resources/csv/_form.html.erb
blacklight-spotlight-0.3.0 app/views/spotlight/resources/csv/_form.html.erb
blacklight-spotlight-0.2.0 app/views/spotlight/resources/csv/_form.html.erb