Sha256: b60eaa8cee2866a3c7fb3aba1f830555077dba96b8faf88bfca3cdb483eda9d9

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

= f.simple_fields_for name do |ff|
  = ff.input_field :name, :as => :hidden, :value => name.is_a?(Symbol) && ff.object.new_record? ? Polyblock::Block.random_id : name.to_s
  - if !options[:label]
    = ff.input_field :content, options[:input_html].merge({:as => :ckeditor})
  - else
    = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.to_s.titleize, :input_html => name.is_a?(String) ? options[:input_html].merge({:value => pb.content}) : options[:input_html]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polyblock-0.6.6 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.6.5 app/views/polyblock/_simple_fields_for.html.haml