Class: ODDB::View::Admin::AddressSuggestionInnerComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/admin/address_suggestion.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  'suggest_addr_sender',
  [0,1] =>  :email,
  [0,2] =>  :address_message,
  [1,2] =>  :message,
}
LEGACY_INTERFACE =
false
LABELS =
true
SYMBOL_MAP =
{
  :address_message => HtmlGrid::LabelText,
  :email           => HtmlGrid::MailLink,
}
CSS_MAP =
{
  [0,0] =>  'subheading',
  [0,1,2,2] =>  'list',
  [0,2,2] => 'list top', 
}
CSS_CLASS =
'component'
COLSPAN_MAP =
{
  [0,0] => 2,
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) message(model)



85
86
87
# File 'src/view/admin/address_suggestion.rb', line 85

def message(model)
  model.message.to_s.gsub("\n", '<br>')
end