Sha256: 4711028c55bca116a47cad79ad5be6a8d9ff23aa36d1cfb607bdc5d3cb958b14

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

<%= simple_form_for [main_app, @form],
                    html: {
                      data: { behavior: 'work-form',
                              'param-key' => @form.model_name.param_key },
                      multipart: true
                    } do |f| %>
  <% if f.object.errors.include?(:base) %>
    <div class="alert alert-danger alert-dismissable" role="alert">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <%= f.object.errors.full_messages_for(:base).send(SimpleForm.error_method) %>
      <%= render 'form_in_works_error', f: f %>
      <%= render 'form_ordered_members_error', f: f %>
    </div>
  <% end %>
  <% if Flipflop.batch_upload? && f.object.new_record? %>
    <% provide :metadata_tab do %>
      <p class="switch-upload-type">To create a separate work for each of the files, go to <%= link_to "Batch upload", hyrax.new_batch_upload_path %></p>
    <% end %>
  <% end %>
  <%= render 'hyrax/base/guts4form', f: f %>
<% end %>

<script type="text/javascript">
  Blacklight.onLoad(function() {
    <%# This causes the page to switch back to the default template if they've
        previously visited the batch download page in this Turbolinks session %>
    $("#fileupload").fileupload('option', 'downloadTemplateId', 'template-download')
  });
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-2.0.0.beta4 app/views/hyrax/base/_form.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/base/_form.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/base/_form.html.erb
hyrax-2.0.0.beta1 app/views/hyrax/base/_form.html.erb