Sha256: 0f0a1aaac99d08a6d509abce1af222b2a8591c6bd78df8bd4fd13ae1ba280ad4

Contents?: true

Size: 887 Bytes

Versions: 11

Compression:

Stored size: 887 Bytes

Contents

- alignment ||= local_assigns[:locals][:alignment]
- f ||= local_assigns[:locals][:f]
%div{:id => f.object.id.to_s}
  - unless f.object.new_record?
    = image_tag f.object.asset.url(:thumb), :width => "100", :class => "left"
  = f.input :name
  - if f.object.new_record?
    .input
      = label_tag "Upload"
      = radio_button_tag :asset_type, "file", true
      File
      = radio_button_tag :asset_type, "url"
      URL
  #asset_type
    = f.input :asset, :as => :file, :label => "Photo", :required => false, :input_html => { :validate => false }
    = f.input :url, :label => "Photo URL", :required => false, :input_html => { :validate => false }
  = f.input :description, :input_html => { :cols => 70, :rows => 3 }
  = f.input :klass, :as => :radio, :collection => ["left", "right", "center"], :label => "Alignment"
  = render "shared/prioritizable_fields", :locals => {:f => f}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sbdevcore-0.2.26 app/views/photos/_form.html.haml
sbdevcore-0.2.25 app/views/photos/_form.html.haml
sbdevcore-0.2.24 app/views/photos/_form.html.haml
sbdevcore-0.2.23 app/views/photos/_form.html.haml
sbdevcore-0.2.22 app/views/photos/_form.html.haml
sbdevcore-0.2.21 app/views/photos/_form.html.haml
sbdevcore-0.2.20 app/views/photos/_form.html.haml
sbdevcore-0.2.19 app/views/photos/_form.html.haml
sbdevcore-0.2.18 app/views/photos/_form.html.haml
sbdevcore-0.2.17 app/views/photos/_form.html.haml
sbdevcore-0.2.16 app/views/photos/_form.html.haml