Module: ODDB::View::Admin::AddressFormMethods

Includes:
HtmlGrid::ErrorMessage
Included in:
AddressSuggestionForm, Hospitals::HospitalForm
Defined in:
src/view/admin/address_suggestion.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :address_type,
  [0,1] =>  :title, 
  [0,2] =>  :name, 
  [0,3] =>  :additional_lines, 
  [0,4] =>  :address, 
  [0,5] =>  :location,
  [0,6] =>  :canton,
  [0,7] =>  :fon,
  [0,8] =>  :fax,
  [0,9] =>  :email_suggestion,
  [1,10]  => :submit,
  [1,10,1]  => :delete,
}
CSS_MAP =
{
  [0,0,2,11]  => 'list', 
  [0,3] => 'list top',
}
COMPONENT_CSS_MAP =
{
  [0,0,2,10]  => 'standard', 
}
EVENT =
:accept
LABELS =
true
LEGACY_INTERFACE =
false
SYMBOL_MAP =
{
  :address_type       => HtmlGrid::Select,
  :canton             => HtmlGrid::Select,
}

Instance Method Summary (collapse)

Instance Method Details

- (Object) additional_lines(model)



45
46
47
48
49
50
51
# File 'src/view/admin/address_suggestion.rb', line 45

def additional_lines(model)
  area = HtmlGrid::Textarea.new(:additional_lines, 
    model, @session, self)
  area.label = true
  area.css_class = 'standard'
  area
end

- (Object) init



41
42
43
44
# File 'src/view/admin/address_suggestion.rb', line 41

def init
  super
  error_message
end