Sha256: fbdf8e596ff93d08731cbf6c67fff2db5dd631287f63fe4e3f5c855410d38e82

Contents?: true

Size: 475 Bytes

Versions: 35

Compression:

Stored size: 475 Bytes

Contents

# -*- encoding : utf-8 -*-
InlineForms::SPECIAL_COLUMN_TYPES[:plain_text_area]=:text

def plain_text_area_show(object, attribute)
  link_to_inline_edit object, attribute, object[attribute].empty? ? 'Click here to edit' : object[attribute]
end

def plain_text_area_edit(object, attribute)
  text_area_tag attribute, object[attribute], :class => 'attribute_text_area'
end

def plain_text_area_update(object, attribute)
  object[attribute.to_sym] = params[attribute.to_sym]
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
inline_forms-1.4.9 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.8 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.7 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.6 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.5 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.4 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.3 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.2 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.1 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.4.0 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.3.49 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.3.48 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.3.47 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.3.45 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.3.44 lib/app/helpers/form_elements/plain_text_area.rb