class CckForms::ParameterTypeClass::Text

Represents a long text string (TEXTAREA).

Public Instance Methods

build_form(form_builder, options) click to toggle source

Builds a TEXTAREA

# File lib/cck_forms/parameter_type_class/text.rb, line 7
def build_form(form_builder, options)
  set_value_in_hash options
  form_builder.text_area :value, {cols: 50, rows: 5, class: 'form-control'}.merge(options)
end
to_diff_value(options = {}) click to toggle source

Wraps DIFF output to .wall (bootstrap-specific bounded block)

# File lib/cck_forms/parameter_type_class/text.rb, line 13
def to_diff_value(options = {})
  to_html(options).presence.try do |html|
    "<div class='well well-small'>#{html}</div>".html_safe
  end
end