Class: ODDB::View::PrivateTemplate

Inherits:
PublicTemplate show all
Includes:
Snapback
Defined in:
src/view/privatetemplate.rb

Direct Known Subclasses

AddressConfirm, Admin::AddressSuggestion, Admin::CommercialForm, Admin::CommercialForms, Admin::Entities, Admin::Entity, Admin::MergeCommercialForm, Admin::PatinfoStats, Admin::ReadonlyPatent, Analysis::Alphabetical, Analysis::Group, Analysis::Position, Analysis::Result, Companies::FiPiOverview, Companies::MergeCompanies, Companies::PowerLinkCompany, Companies::RootCompany, Companies::SetPass, Companies::UnknownCompany, Companies::UserCompany, Doctors::Doctor, Doctors::RootDoctor, Drugs::AtcChooser, Drugs::LimitationText, Drugs::PriceHistory, Drugs::PrivateTemplate, Hospitals::Hospital, Migel::Alphabetical, Migel::Group, Migel::LimitationText, Migel::Product, Migel::Result, Migel::Subgroup, SetPass, Substances::SelectSubstance, Substances::Substance, SuggestAddress

Constant Summary

SEARCH_HEAD =
View::SearchForm

Constants included from Snapback

SNAPBACK_EVENT

Constants inherited from PublicTemplate

COMPONENTS, CONTENT, CSS_CLASS, DOJO_DEBUG, DOJO_ENCODING, DOJO_PARSE_WIDGETS, DOJO_PREFIX, DOJO_REQUIRE, FOOT, HEAD, HTTP_HEADERS, META_TAGS

Instance Method Summary (collapse)

Methods included from Snapback

#snapback

Methods inherited from PublicTemplate

#content, #css_link, #dynamic_html_headers, #foot, #head, #javascripts, #title, #title_part_three, #topfoot

Methods included from Custom::HeadMethods

#just_medical, #oekk_head

Instance Method Details

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



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

def backtracking(model, session=@session)
  View::PointerSteps.new(model, @session, self)
end

- (Object) init



14
15
16
17
# File 'src/view/privatetemplate.rb', line 14

def init
  reorganize_components
  super
end

- (Object) reorganize_components



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'src/view/privatetemplate.rb', line 21

def reorganize_components
  if(@lookandfeel.enabled?(:topfoot))
    @components = {
      [0,0]   => :topfoot,
      [0,1]   => :head,
      [0,2]   => :backtracking,
      [1,2]   => self.class::SEARCH_HEAD,
      [0,3]   => :content,
      [0,4]   => :foot,
    }
    @colspan_map = {
      [0,0] =>  2,
      [0,1] =>  2,
      [0,3] =>  2,
      [0,4] =>  2,
    }
    css_map.store([1,2], 'right')
  else
    @components = {
      [0,0]   => :head,
      [0,1]   => :backtracking,
      [1,1]   => self.class::SEARCH_HEAD,
      [0,2]   => :content,
      [0,3]   => :foot,
    }
    @colspan_map = {
      [0,0] =>  2,
      [0,2] =>  2,
      [0,3] =>  2,
    }
    css_map.store([1,1], 'right')
  end
end