Sha256: 25e9e31d1e01dc06a2208b5f4fc9e333c003e5d842f2e5423579068b600095f9

Contents?: true

Size: 984 Bytes

Versions: 8

Compression:

Stored size: 984 Bytes

Contents

<% if !defined?(@uploadify_scripts_included) -%>
  <% @uploadify_scripts_included = true -%>
  <% content_for :head do  -%>
     <%= javascript_include_tag %w{ jquery/jquery.uploadify.min.js swf/swfobject.js }, :cache => 'uploadify_cached' %>
    <%= stylesheet_link_tag 'uploadify' %>
  <% end -%>
<% end -%>

<div id="<%=options[:container_prefix]%>_upload">
  <%= form_for :upload, :url => uploads_path(make_parent_params(parent)), :html => { :multipart => true, :id => "#{options[:container_prefix]}_form" } do |f| -%>
    <p><%= f.file_field :local, :size => 25 %></p>
    <%= submit_tag t('uploader.upload_file') %>
  <% end %>
</div>

<script type='text/javascript'>
  <% if options[:omit_initializer] -%>
    var <%=options[:container_prefix]%>_options = <%=uploadify_options.html_safe%>;
  <% else -%>
    jQuery(document).ready(function() {
      jQuery('#<%=options[:container_prefix]%>_upload').uploadify(<%=uploadify_options.html_safe%>);
    });
  <% end -%>
</script>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uploader-3.1.4 app/views/uploads/_uploadify.html.erb
uploader-3.1.3 app/views/uploads/_uploadify.html.erb
uploader-3.1.2 app/views/uploads/_uploadify.html.erb
uploader-3.1.1 app/views/uploads/_uploadify.html.erb
uploader-3.1.0 app/views/uploads/_uploadify.html.erb
uploader-3.0.2 app/views/uploads/_uploadify.html.erb
uploader-3.0.1 app/views/uploads/_uploadify.html.erb
uploader-3.0.0 app/views/uploads/_uploadify.html.erb