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.6 app/views/attachments/_form.html.haml
wheels-0.1.5 app/views/attachments/_form.html.haml
wheels-0.1.4 app/views/attachments/_form.html.haml
wheels-0.1.3 app/views/attachments/_form.html.haml
wheels-0.1.2 app/views/attachments/_form.html.haml
wheels-0.1.1 app/views/attachments/_form.html.haml
wheels-0.1.0 app/views/attachments/_form.html.haml
wheels-0.0.49 app/views/attachments/_form.html.haml
wheels-0.0.48 app/views/attachments/_form.html.haml
wheels-0.0.47 app/views/attachments/_form.html.haml
wheels-0.0.46 app/views/attachments/_form.html.haml
wheels-0.0.45 app/views/attachments/_form.html.haml
wheels-0.0.44 app/views/attachments/_form.html.haml
wheels-0.0.43 app/views/attachments/_form.html.haml
wheels-0.0.42 app/views/attachments/_form.html.haml
wheels-0.0.41 app/views/attachments/_form.html.haml
wheels-0.0.40 app/views/attachments/_form.html.haml
wheels-0.0.39 app/views/attachments/_form.html.haml
wheels-0.0.38 app/views/attachments/_form.html.haml
wheels-0.0.37 app/views/attachments/_form.html.haml