Sha256: ca11707b0f25cae66451099d7955a9ab9858650ef2d69473f1ba9ce10a91d142

Contents?: true

Size: 1.09 KB

Versions: 46

Compression:

Stored size: 1.09 KB

Contents

-if resource.errors.any?
  #errorExplanation
    %h2= "#{pluralize(resource.errors.count, "error")} prohibited this image from being saved:"
    %ul
      - resource.errors.full_messages.each do |msg|
        %li= msg

= form_for [@page, Attachment.new(:page=>@page)], :remote=>true, :html=>{:multipart=>true, :id=>"upload_form"} do |f|
  = f.file_field :file, :id=>"file_input"
  = f.hidden_field :file_file_name, :id=>"file_file_name_input"
  = f.hidden_field :file_file_size, :id=>"file_file_size_input"
  = f.hidden_field :file_content_type, :id=>"file_content_type_input"
  = f.hidden_field :file_updated_at, :id=>"file_updated_at_input"
  = f.submit "Upload File", :id=>"upload_button"

= content_for :head do
  = javascript_include_tag *%w(swfobject jquery.uploadify)
  :javascript
    $(function(){
    $('#upload_button').hide();
    });

= uploadify_s3(:file_input_selector => '#file_input', :button_text => 'Add File', |
:on_success => %(function(f) {submitFileForm(f.name, f.size, f.type)}), |
:on_error => %(function(type, text) {alert("Problem during file upload type: " + type + " text: " + text);}))

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
wheels-0.1.28 app/views/attachments/_form.html.haml
wheels-0.1.27 app/views/attachments/_form.html.haml
wheels-0.1.25 app/views/attachments/_form.html.haml
wheels-0.1.24 app/views/attachments/_form.html.haml
wheels-0.1.23 app/views/attachments/_form.html.haml
wheels-0.1.22 app/views/attachments/_form.html.haml
wheels-0.1.21 app/views/attachments/_form.html.haml
wheels-0.1.20 app/views/attachments/_form.html.haml
wheels-0.1.19 app/views/attachments/_form.html.haml
wheels-0.1.18 app/views/attachments/_form.html.haml
wheels-0.1.17 app/views/attachments/_form.html.haml
wheels-0.1.16 app/views/attachments/_form.html.haml
wheels-0.1.15 app/views/attachments/_form.html.haml
wheels-0.1.14 app/views/attachments/_form.html.haml
wheels-0.1.13 app/views/attachments/_form.html.haml
wheels-0.1.12 app/views/attachments/_form.html.haml
wheels-0.1.10 app/views/attachments/_form.html.haml
wheels-0.1.9 app/views/attachments/_form.html.haml
wheels-0.1.8 app/views/attachments/_form.html.haml
wheels-0.1.7 app/views/attachments/_form.html.haml