Module: ODDB::View::Print

Included in:
Drugs::FiChapterChooser, Drugs::PatinfoComposite
Defined in:
src/view/printtemplate.rb

Instance Method Summary (collapse)

Instance Method Details



9
10
11
12
13
14
15
16
17
# File 'src/view/printtemplate.rb', line 9

def print(model, session=@session, key=:print)
  link = HtmlGrid::Link.new(key, model, session, self)
  link.set_attribute('title', @lookandfeel.lookup(:print_title))
  args = { 
    :pointer => model.pointer,
  }
  link.href = @lookandfeel._event_url(:print, args)
  link
end


18
19
20
# File 'src/view/printtemplate.rb', line 18

def print_edit(model, session=@session, key=:print)
  print(model, session, :print_edit)
end