Sha256: 1edfdfe12117be25afea17466da8d04f9caba4daa913d99f5d3c4e0ed6d5f3c0

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

= f.simple_fields_for name do |ff|
  - if f.object.errors[name.to_sym].any?
    - f.object.errors.full_messages_for(name.to_sym).each do |e|
      .alert.alert-danger= e
  = ff.input_field :name, :as => :hidden, :value => name.to_s
  - if options[:use_input_field] == false
    = ff.input :content, options[:field]
  - else
    = ff.input_field :content, options[:field][:input_html]
    -# = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.to_s.titleize,
    -#            :input_html => pb.content.present? ? options[:input_html].merge({:value => pb.content}) : options[:input_html]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
polyblock-0.9.6 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.9.5 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.9.4 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.9.3 app/views/polyblock/_simple_fields_for.html.haml
polyblock-0.9.2 app/views/polyblock/_simple_fields_for.html.haml