Class: ODDB::View::Migel::FeedbacksComposite

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

Constant Summary

CSS_CLASS =
'composite'
COMPONENTS =
{
  [1,0]   =>  View::SearchForm,
  [0,1]   =>  :feedback_title,
  [1,1]   => :feedback_pager,
  [0,2]   =>  :current_feedback,
  [1,2]   =>  :feedback_list,
}
CSS_MAP =
{
  [0,1] => 'th',
  [1,1] => 'th right',
  [1,2] => 'component border-left top'
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) current_feedback(model)



71
72
73
# File 'src/view/migel/feedbacks.rb', line 71

def current_feedback(model)
  FeedbackForm.new(model.current_feedback, @session, self)
end

- (Object) feedback_list(model)



74
75
76
# File 'src/view/migel/feedbacks.rb', line 74

def (model)
  FeedbackList.new(model., @session, self)
end

- (Object) feedback_pager(model)



77
78
79
80
81
# File 'src/view/migel/feedbacks.rb', line 77

def (model)
  if(model. > 0)
    FeedbackPager.new(model, @session, self)
  end
end

- (Object) feedback_title(model)



82
83
84
# File 'src/view/migel/feedbacks.rb', line 82

def (model)
  [@lookandfeel.lookup(:feedback_title_migel), model.name].join
end