Sha256: e59e7bde94b962bdc738a712a032941340ac7f8c59eeecb48c6052f2d67a754a

Contents?: true

Size: 1.48 KB

Versions: 11

Compression:

Stored size: 1.48 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.any? %>
    <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 %>
      <%= render 'form_collections_error', f: f %>
      <%= render 'form_visibility_error', f: f %>
    </div>
  <% end %>
  <% 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

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/base/_form.html.erb
hyrax-3.5.0 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/base/_form.html.erb
hyrax-3.4.2 app/views/hyrax/base/_form.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/base/_form.html.erb
hyrax-3.4.1 app/views/hyrax/base/_form.html.erb
hyrax-3.4.0 app/views/hyrax/base/_form.html.erb