Sha256: b243630839bb29afb64adc974211a74062aa18e9bf14b86edde7553e1f0e83df

Contents?: true

Size: 532 Bytes

Versions: 64

Compression:

Stored size: 532 Bytes

Contents

= simple_form_for @asset, :url => url, :html => { :multipart => true } do |f|
  .lightened-box
    %h1= page_title
    = f.input :file, :as => :file
    = f.input :path, :as => :string, :input_html => { :readonly => true }
    .clear
  - if @asset.file.url.present?
    .darkened-box
      - if [:jpg, :jpeg, :png].include?(@asset.file_type)
        .fixed-width-image
          = link_to image_tag(@asset.file.url), @asset.file.url
      - else
        = link_to @asset.name, @asset.file.url
  .lightened-box
    = f.button :submit

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.3.4.legacy3 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.1.1 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.2.legacy3 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.2.legacy2 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.2.legacy app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.3.4.legacy2 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-0.3.4.legacy app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.1.0 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.8.6 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.8.5 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.0.3 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.0.2 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.8.4 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.8.1 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.0.1 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-2.0.0 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.8.0 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.7.1 app/views/kuhsaft/cms/assets/_form.html.haml
kuhsaft-1.7.0 app/views/kuhsaft/cms/assets/_form.html.haml