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.6.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.9 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.8 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.7 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.6 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.5 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.4 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.3 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.2 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.1 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.5.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.9 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.8 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.7 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.6 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.5 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.2 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.1 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.4.0 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.3.9 app/views/polyblock/_simple_fields_for.html.haml