- 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 = f.input :asset, :as => :file, :label => "Photo", :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}