Class: ODDB::View::Substances::ConnectionKeys

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

Constant Summary

COMPONENTS =
{
  [0,0] =>  :connection_key,
  [1,0] =>  :delete,
}
CSS_MAP =
{
  [0,0] =>  'list',
}
CSS_CLASS =
'composite'
LEGACY_INTERFACE =
false
DEFAULT_HEAD_CLASS =
'subheading'
SORT_HEADER =
false

Constants inherited from HtmlGrid::List

BACKGROUND_SUFFIX

Instance Method Summary (collapse)

Instance Method Details

- (Object) connection_key(model)



123
124
125
# File 'src/view/substances/substance.rb', line 123

def connection_key(model)
  model.to_s
end

- (Object) delete(model)



126
127
128
129
130
131
132
133
134
# File 'src/view/substances/substance.rb', line 126

def delete(model)
  link = HtmlGrid::Link.new(:delete, model, @session, self)
  args = {
    :connection_key  => model,
  }
  link.href = @lookandfeel.event_url(:delete_connection_key, args)
  link.css_class = 'small'
  link
end