Sha256: c0347a16ecbfe2dc7053336c634f018af0758136aed0f7f13ce3655d31d28207

Contents?: true

Size: 971 Bytes

Versions: 7

Compression:

Stored size: 971 Bytes

Contents

<%= simple_form_for [main_app, @form],
                    html: {
                      data: { behavior: 'work-form',
                              'param-key' => @form.model_name.param_key },
                      multipart: true
                    } do |f| %>
  <% if Flipflop.batch_upload? && !f.object.persisted? %>
    <% provide :metadata_tab do %>
      <p class="switch-upload-type"><%= t('.batch_upload_hint') %> <%= link_to t('.batch_link'), hyrax.new_batch_upload_path(payload_concern: @form.model.class) %></p>
    <% end %>
  <% end %>
  <%= render 'hyrax/base/guts4form', f: f, tabs: form_tabs_for(form: f.object) %>
<% 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

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-5.0.3 app/views/hyrax/base/_form.html.erb
hyrax-5.0.2 app/views/hyrax/base/_form.html.erb
hyrax-5.0.1 app/views/hyrax/base/_form.html.erb
hyrax-5.0.0 app/views/hyrax/base/_form.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/base/_form.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/base/_form.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/base/_form.html.erb