Class: ODDB::Html::View::Drugs::Admin::Packages

Inherits:
List
  • Object
show all
Includes:
HtmlGrid::FormMethods, PackageMethods
Defined in:
lib/oddb/html/view/drugs/admin/sequence.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :cid,
  [1,0] => :name,
  [2,0] => :size,
}
EVENT =
:new_package
OMIT_HEADER =
true

Constants inherited from List

List::BACKGROUND_ROW, List::BACKGROUND_SUFFIX, List::LEGACY_INTERFACE, List::SORT_DEFAULT

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 inherited from List

#query_args, #query_key, #sort_link

Instance Method Details

#cid(model) ⇒ Object



153
154
155
156
157
158
159
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 153

def cid(model)
  code = model.code(:cid)
  link = HtmlGrid::Link.new(:cid, model, @session, self)
  link.href = @lookandfeel._event_url(:package, :cid => code)
  link.value = code
  link
end


147
148
149
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 147

def compose_footer(offset)
  @grid.add submit(@model), *offset
end

#hidden_fields(context) ⇒ Object



150
151
152
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 150

def hidden_fields(context)
  super << context.hidden("uid", @container.model.uid)
end