Class: ODDB::View::PrintTemplate

Inherits:
HtmlGrid::DivTemplate
  • Object
show all
Defined in:
src/view/printtemplate.rb

Direct Known Subclasses

Drugs::FachinfoPrint, Drugs::PatinfoPrint

Constant Summary

COMPONENTS =
{
  [0,0]   => :head,
  [0,1]   => :content,
}

Instance Method Summary (collapse)

Instance Method Details



34
35
36
# File 'src/view/printtemplate.rb', line 34

def css_link(context, path=@lookandfeel.resource_global(:css_print))
  super(context, path)
end

- (Object) head(model, session = @session)



31
32
33
# File 'src/view/printtemplate.rb', line 31

def head(model, session=@session)
  @lookandfeel.lookup(:print_head)
end

- (Object) init



27
28
29
30
# File 'src/view/printtemplate.rb', line 27

def init
  @attributes['onload'] = 'window.print();'
  super
end