Sha256: 8548c9c0baf1a18466a2b68a6d1e7e5fef5e448c6913ef9b8b3e131d3761c3a4

Contents?: true

Size: 611 Bytes

Versions: 13

Compression:

Stored size: 611 Bytes

Contents

- alignment ||= local_assigns[:locals][:alignment]
- f ||= local_assigns[:locals][:f]
%div{:id => f.object.id.to_s}
  - if f.object.asset_file_name
    = image_tag f.object.asset.url(:thumb), :width => "100", :class => "left"
  = f.input :name
  = f.input :asset, :as => :file, :label => "Photo", :input_html => {:validate => ( f.object.asset_file_name.blank? ? true : 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

13 entries across 13 versions & 1 rubygems

Version Path
sbdevcore-0.2.15 app/views/photos/_form.html.haml
sbdevcore-0.2.14 app/views/photos/_form.html.haml
sbdevcore-0.2.13 app/views/photos/_form.html.haml
sbdevcore-0.2.12 app/views/photos/_form.html.haml
sbdevcore-0.2.11 app/views/photos/_form.html.haml
sbdevcore-0.2.10 app/views/photos/_form.html.haml
sbdevcore-0.2.9 app/views/photos/_form.html.haml
sbdevcore-0.2.8 app/views/photos/_form.html.haml
sbdevcore-0.2.7 app/views/photos/_form.html.haml
sbdevcore-0.2.6 app/views/photos/_form.html.haml
sbdevcore-0.2.5 app/views/photos/_form.html.haml
sbdevcore-0.2.4 app/views/photos/_form.html.haml
sbdevcore-0.2.2 app/views/photos/_form.html.haml