Sha256: d19d395a7c2fc20636431222eca7d5bb0c711fd9050c1ceb9b3fd3f5aa2905e0

Contents?: true

Size: 1.46 KB

Versions: 8

Compression:

Stored size: 1.46 KB

Contents

<% unless file_assets.empty? %>
    <table class='multipleEdit' id='file_assets'>
      <tr>
        <th colspan="2">File</th>
      </tr>
      <%= render :partial=>'hydra/file_assets/result', :collection=> file_assets%>
			</table>
<% end %>

<% if !@document.nil? && can?(:edit, @document) && params[:number_of_files].to_i > 0 %>
  <%- container_content_type_param = defined?(container_content_type) ? "?container_content_type=#{container_content_type}" : "" %>
  <fieldset id='uploader'>
    <legend>File Upload</legend>
    <%= form_tag(upload_url,:method=>"post",:enctype=>"multipart/form-data", :class=>"uploader-form step") do -%>
      <input type="hidden" name="container_id" value="<%=h container_id %>"/>
      <%= hidden_field_tag("container_content_type", container_content_type, :id => "file_upload_content_type") if defined?(container_content_type) %>
      <%- params[:number_of_files].to_i.times do -%>
        <%= render :partial=>"hydra/file_assets/new"%>
      <%- end -%>
      <%= hidden_field_tag(:wf_step, params[:wf_step], :id => "files_wf_step") %>
      <%= hidden_field_tag(:new_asset, true, :id => "files_new_asset") if params[:new_asset] %>
      <%= hidden_field_tag("id",params[:id], :id => "file_upload_id") if params[:id] %>
      <p>
        <%= submit_tag("Upload File", :name=>"upload_file")%>
        <%= submit_tag("Upload and Finish", :name=>"finish") unless params[:new_asset] or session[:scripts] %>
      </p>
    <%- end -%>
  </fieldset>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hydra-head-4.0.3 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.2 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.1 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.0 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.0.rc6 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.0.rc5 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.0.rc4 app/views/hydra/file_assets/_index.html.erb
hydra-head-4.0.0.rc3 app/views/hydra/file_assets/_index.html.erb