Sha256: fe69d509a0c2cac8c02da56ac331239d8ddef59c988dceaac0293c1de0fd6249

Contents?: true

Size: 366 Bytes

Versions: 29

Compression:

Stored size: 366 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 => options[:input_html]

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
polyblock-0.3.7 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.6 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.5 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.4 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.3 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.2 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.1 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.2.9 app/views/polyblock/_simple_fields_for.html.haml