Class: ODDB::View::User::DownloadExportComposite

Inherits:
Form
  • Object
show all
Includes:
HtmlGrid::ErrorMessage, DataDeclaration
Defined in:
src/view/user/download_export.rb

Constant Summary

COMPONENTS =
{
  [0,0,0]   => 'download_export',
  [0,0,1] =>  'dash_separator',
  [0,0,2] =>  :data_declaration,
  [0,1]   => :download_export_descr,
  [0,2]   => DownloadExportInnerComposite,
  [0,3]   => :submit,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
  [0,1] =>  'list',
  [0,3] =>  'list',
}
EVENT =
:proceed_download
SYMBOL_MAP =
{
  :yaml_link => HtmlGrid::Link,
}

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods included from DataDeclaration

#data_declaration

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

- (Object) download_export_descr(model, session)



522
523
524
525
526
527
528
529
530
531
532
533
# File 'src/view/user/download_export.rb', line 522

def download_export_descr(model, session)
  pages = {
    'de' => 'Stammdaten',  
    'en' => 'MasterData',  
    'fr' => 'DonneesDeBase',   
  }
  page = pages[@lookandfeel.language]
  link = HtmlGrid::Link.new(:download_export_descr, model, 
    @session, self)
  link.href = "http://wiki.oddb.org/wiki.php?pagename=ODDB.#{page}"
  link
end

- (Object) init



534
535
536
537
# File 'src/view/user/download_export.rb', line 534

def init
  super
  error_message(1)
end