Class: ODDB::View::Migel::GroupInnerComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/migel/group.rb

Constant Summary

COMPONENTS =
{
  [0,0] => :migel_code,
  [0,1] => :description,
  [0,2] => :limitation_text,
}
CSS_MAP =
{
  [0,0,1,3] => 'list top',
  [1,0,1,3] => 'list',
}
LABELS =
true
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) description(model, key = :descr)



46
47
48
49
50
51
52
# File 'src/view/migel/group.rb', line 46

def description(model, key = :descr)
  value = HtmlGrid::Value.new(key, model, @session, self)
  if(model)
    value.value = model.send(@session.language)
  end
  value
end

- (Object) limitation_text(model)



53
54
55
# File 'src/view/migel/group.rb', line 53

def limitation_text(model)
  description(model.limitation_text, :limitation_text)
end