Sha256: 6f248d6bb27c5da9872f4fc59dd92511366849ffcc067cbe2cc6a5dac88e3553
Contents?: true
Size: 1.25 KB
Versions: 9
Compression:
Stored size: 1.25 KB
Contents
<%= simple_form_for [main_app, @form], html: { data: { behavior: 'work-form' }, 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">×</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 %> <% unless f.object.persisted? %> <% content_for :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
9 entries across 9 versions & 1 rubygems