Class: ODDB::View::User::MailingListForm

Inherits:
Form
  • Object
show all
Defined in:
src/view/user/mailinglist.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :email,
  [1,0]   => :subscribe,
  [2,0]   => :unsubscribe,
}
COMPONENT_CSS_MAP =
{
  [0,0] =>  'mailinglist',
}
LABELS =
false
SYMBOL_MAP =
{
  :email  => HtmlGrid::InputText,
}

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) subscribe(model, session)



25
26
27
# File 'src/view/user/mailinglist.rb', line 25

def (model, session)
  submit(model, session, :subscribe)
end

- (Object) unsubscribe(model, session)



28
29
30
# File 'src/view/user/mailinglist.rb', line 28

def unsubscribe(model, session)
  submit(model, session, :unsubscribe)
end