Sha256: ec2055a3032d617fbcf486f024590a81068531dcbe10c411a0c21e9888ef9ce4

Contents?: true

Size: 1.53 KB

Versions: 16

Compression:

Stored size: 1.53 KB

Contents

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

<% if !@document.nil? && editor? && 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>
    <!-- This form will be progressively enhanced by the Fluid Uploader component. -->
    <%= 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=>"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

16 entries across 16 versions & 1 rubygems

Version Path
hydra-head-3.1.4 app/views/file_assets/_index.html.erb
hydra-head-3.1.3 app/views/file_assets/_index.html.erb
hydra-head-3.1.2 app/views/file_assets/_index.html.erb
hydra-head-3.1.1 app/views/file_assets/_index.html.erb
hydra-head-3.1.0 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.rc2 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.rc1 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.pre5 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.pre4 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.pre3 app/views/file_assets/_index.html.erb
hydra-head-3.0.1 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.pre2 app/views/file_assets/_index.html.erb
hydra-head-3.0.0 app/views/file_assets/_index.html.erb
hydra-head-3.1.0.pre1 app/views/file_assets/_index.html.erb
hydra-head-3.0.0.rc2 app/views/file_assets/_index.html.erb
hydra-head-3.0.0.rc1 app/views/file_assets/_index.html.erb