Sha256: d8d22b695af2820f604f4cbd0b349469db5dd51a8654b5c6b95cd2037f5c401e
Contents?: true
Size: 1.52 KB
Versions: 25
Compression:
Stored size: 1.52 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(hydra_asset_file_assets_path(:asset_id => params[:asset_id] || params[:id]),:method=>"post",:enctype=>"multipart/form-data", :class=>"uploader-form step") do -%> <%= hidden_field_tag("container_id", params[:asset_id] || params[: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
25 entries across 25 versions & 2 rubygems