Class: ODDB::View::Admin::AddressSuggestionForm

Inherits:
Form
  • Object
show all
Includes:
AddressFormMethods
Defined in:
src/view/admin/address_suggestion.rb

Constant Summary

Constants included from AddressFormMethods

COMPONENTS, COMPONENT_CSS_MAP, CSS_MAP, EVENT, LABELS, LEGACY_INTERFACE, SYMBOL_MAP

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods included from AddressFormMethods

#additional_lines, #init

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

- (Object) delete(model)



55
56
57
58
59
60
61
# File 'src/view/admin/address_suggestion.rb', line 55

def delete(model)
  button = HtmlGrid::Button.new(:delete,
    model, @session, self)
  button.set_attribute('onclick', 
    "this.form.event.value='delete'; this.form.submit();")
  button
end