Class: ODDB::View::Drugs::FeedbacksComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/drugs/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',
  [0,2] => 'top',
  [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)



83
84
85
# File 'src/view/drugs/feedbacks.rb', line 83

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

- (Object) feedback_list(model)



86
87
88
# File 'src/view/drugs/feedbacks.rb', line 86

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

- (Object) feedback_pager(model)



89
90
91
92
93
# File 'src/view/drugs/feedbacks.rb', line 89

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

- (Object) feedback_title(model)



94
95
96
97
# File 'src/view/drugs/feedbacks.rb', line 94

def (model)
  @lookandfeel.lookup(:feedback_title, 
    model.name, model.size)
end