Class: ODDB::View::Substances::DescriptionForm

Inherits:
DescriptionForm show all
Defined in:
src/view/substances/substance.rb

Constant Summary

DESCRIPTION_CSS =
'xl'

Constants inherited from DescriptionForm

COMPONENTS, DEFAULT_CLASS, DELETE_BUTTON, DESCRIPTION_CSS, EVENT, LABELS

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods inherited from DescriptionForm

#init

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

- (Object) languages



102
103
104
# File 'src/view/substances/substance.rb', line 102

def languages
  @lookandfeel.languages + ['lt', 'synonym_list']
end

- (Object) synonym_list(model, session)



105
106
107
108
109
# File 'src/view/substances/substance.rb', line 105

def synonym_list(model, session)
  input = DEFAULT_CLASS.new(:synonym_list, model, session, self)
  input.value = model.synonyms.join(', ')
  input
end