Class: ODDB::View::Admin::FachinfoConfirmForm

Inherits:
FormList
  • Object
show all
Includes:
HtmlGrid::ErrorMessage
Defined in:
src/view/admin/fachinfoconfirm.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :preview,
  [1,0] =>  :name,
  [2,0] =>  :iksnrs,
  [3,0] =>  :language,
}
COMPONENT_CSS_MAP =
{
  [0,0]   => 'small',
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0]   => 'list small',
  [1,0,3] =>  'list',
}
DEFAULT_HEAD_CLASS =
'subheading'
EVENT =
:update
LOOKANDFEEL_MAP =
{
  :name =>  :fachinfo_title,
}
SORT_HEADER =
false

Instance Method Summary (collapse)

Instance Method Details



37
38
39
40
41
42
43
# File 'src/view/admin/fachinfoconfirm.rb', line 37

def compose_footer(matrix)
  unless(@session.error?)
    super
  end
  @grid.add(back(), *matrix)
  @grid.set_colspan(*matrix)
end

- (Object) iksnrs(model, session)



44
45
46
# File 'src/view/admin/fachinfoconfirm.rb', line 44

def iksnrs (model, session)
  @session.state.iksnrs(model).join(", ")
end

- (Object) init



33
34
35
36
# File 'src/view/admin/fachinfoconfirm.rb', line 33

def init
  super
  error_message()
end

- (Object) language(model, session)



47
48
49
# File 'src/view/admin/fachinfoconfirm.rb', line 47

def language(model, session)
  @lookandfeel.lookup(@session.state.language)
end

- (Object) preview(model, session)



50
51
52
53
54
55
# File 'src/view/admin/fachinfoconfirm.rb', line 50

def preview(model, session)
  link = HtmlGrid::PopupLink.new(:preview, model, session, self)
  link.href = @lookandfeel.event_url(:preview, \
    {"index" => @list_index})
  link
end