Class: ODDB::Html::View::Drugs::FeedbackComposite

Inherits:
HtmlGrid::DivComposite
  • Object
show all
Includes:
PackageMethods, Snapback
Defined in:
lib/oddb/html/view/drugs/feedback.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :snapback, 
  [0,1] => InlineSearch, 
  [0,2] => :feedback_for,
  [0,3] => :feedbacks,
  [0,4] => :feedback_form,
}
CSS_ID_MAP =
[ 'snapback', 'result-search', 'title', 'feedbacks' ]
CSS_MAP =
{ 
  0 => 'before-searchbar', 
  3 => 'mezzo righthand', 
  4 => 'mezzo lefthand', 
}

Instance Method Summary collapse

Methods included from PackageMethods

#active_agents, #adjust_price, #code_boolean, #code_festbetragsgruppe, #code_festbetragsstufe, #code_prescription, #code_registration, #code_zuzahlungsbefreit, #ddd_prices, #fachinfo_link, #feedback, #patinfo_link, #price_difference, #price_exfactory, #price_festbetrag, #price_public, #price_zuzahlung, #product, #product_local, #product_remote, #row_css, #size

Methods included from Snapback

#snapback

Instance Method Details

#feedback_for(model) ⇒ Object



215
216
217
# File 'lib/oddb/html/view/drugs/feedback.rb', line 215

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

#feedback_form(model) ⇒ Object



218
219
220
# File 'lib/oddb/html/view/drugs/feedback.rb', line 218

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

#feedbacks(model) ⇒ Object



212
213
214
# File 'lib/oddb/html/view/drugs/feedback.rb', line 212

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