Sha256: 2df0e88124d44b3ea14dbdebfdbd285c771fbf72a681e28704d1878fc79faee9

Contents?: true

Size: 480 Bytes

Versions: 44

Compression:

Stored size: 480 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

44 entries across 44 versions & 1 rubygems

Version Path
inline_forms-1.6.50 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.49 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.48 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.47 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.46 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.45 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.44 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.43 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.42 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.41 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.40 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.39 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.38 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.37 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.36 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-1.6.35 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-2.23 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-2.22 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-2.21 lib/app/helpers/form_elements/plain_text_area.rb
inline_forms-2.2 lib/app/helpers/form_elements/plain_text_area.rb