Class: ODDB::View::Admin::SlEntryForm

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

Constant Summary

COMPONENTS =
{
  [0,0]   =>  :introduction_date,
  [0,1]   =>  :limitation,
  [1,1]   =>  :limitation_points,
  [1,2,0] =>  :submit,
  [1,2,1] =>  :delete_item,
}
COMPONENT_CSS_MAP =
{
  [1,0] =>  'standard',
}
CSS_MAP =
{
  [0,0,4,3] =>  'list',
}
LABELS =
true
SYMBOL_MAP =
{
  :introduction_date => HtmlGrid::InputDate, 
  :limitation => HtmlGrid::Select,
}

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

- (Object) init



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

def init
  super
  error_message()
end

- (Object) limitation_points(model, session)



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

def limitation_points(model, session)
  input = HtmlGrid::InputText.new(:limitation_points, model, session, self)
  input.set_attribute('class', 'small' )
  input.label = false
  input
end