Class: ODDB::Html::View::Drugs::Admin::PackageComposite

Inherits:
PackageComposite
  • Object
show all
Defined in:
lib/oddb/html/view/drugs/admin/package.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :snapback, 
  [0,1] => InlineSearch, 
  [0,2] => :name,
  [0,3] => PackageForm,
}
CSS_MAP =
{ 0 => 'before-searchbar' }

Constants inherited from PackageComposite

PackageComposite::CSS_ID_MAP

Instance Method Summary collapse

Methods inherited from PackageComposite

#name, #parts, #parts_heading, #snapback

Methods included from Snapback

#snapback

Instance Method Details



217
218
219
220
221
222
223
224
# File 'lib/oddb/html/view/drugs/admin/package.rb', line 217

def breadcrumbs(model)
  div = @lookandfeel.lookup(:breadcrumb_divider)
  seq = HtmlGrid::Link.new(:sequence, model, @session, self)
  seq.href = @lookandfeel._event_url(:sequence, :uid => model.sequence.uid)
  prd = HtmlGrid::Link.new(:product, model, @session, self)
  prd.href = @lookandfeel._event_url(:product, :uid => model.product.uid)
  [ prd, div, seq, div ].concat super
end

#partline(part, idx) ⇒ Object



225
226
227
# File 'lib/oddb/html/view/drugs/admin/package.rb', line 225

def partline(part, idx)
  # here in the Admin-Section we want the parts displayed differently, through Parts
end