Sha256: 11691cca627c32de4ae72a57a9245cb01bc4ef150b0db6af357432821fbf0dff

Contents?: true

Size: 690 Bytes

Versions: 7

Compression:

Stored size: 690 Bytes

Contents

#tandem-upload-image
  = form_for (@image ||= ::Tandem::Image.new), :url => (@image.new_record? ? tandem.images_path : tandem.image_path(@image)), :html => { :multipart => true, :id => 'new_tandem_image' } do |f|

    -if f.object.errors.any?
      #error_explanation
        h2 = "#{pluralize(f.object.errors.count, "error")} prohibited this image from being saved:"
        ul
          - f.object.errors.full_messages.each do |msg|
            li= msg
    
    span#upload-button
      | Upload a New Image
      = f.file_field :resource

    div.loader
      div.range 
        span 0%

    section#error_explanation
      header
        h1 Oops—there's been a problem

      ul

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tandem-0.2.5 app/views/tandem/images/_form.html.slim
tandem-0.2.4 app/views/tandem/images/_form.html.slim
tandem-0.2.3 app/views/tandem/images/_form.html.slim
tandem-0.2.2 app/views/tandem/images/_form.html.slim
tandem-0.2.1 app/views/tandem/images/_form.html.slim
tandem-0.2.0 app/views/tandem/images/_form.html.slim
tandem-0.2.0.rc app/views/tandem/images/_form.html.slim