Sha256: 7247b432238565ca94ce2a349d4ad1c2d32dfd9dc28824e4a6498202cda954f7

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

= f.simple_fields_for name do |ff|
  = ff.input_field :name, :as => :hidden, :value => 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

11 entries across 11 versions & 1 rubygems

Version Path
polyblock-0.8.3 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.8.2 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.8.1 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.8.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.7.2 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.7.1 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.7.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.6.7 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.6.4 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.6.3 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.6.2 app/views/polyblock/_simple_fields_for.html.haml