Class: ODDB::Html::View::Drugs::DownloadsForm

Inherits:
HtmlGrid::DivForm
  • Object
show all
Defined in:
lib/oddb/html/view/drugs/downloads.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => DownloadList,
  [0,1] => :compression_label,
  [0,2] => :compression,
  [0,3] => :submit,
}
CSS_MAP =
{ 1 => 'padded', 2 => 'padded', 3 => 'padded' }
EVENT =
:proceed_download
SYMBOL_MAP =
{
  :compression       => HtmlGrid::Select,
}

Instance Method Summary collapse

Instance Method Details

#compression_label(model) ⇒ Object



101
102
103
104
105
# File 'lib/oddb/html/view/drugs/downloads.rb', line 101

def compression_label model
  label = HtmlGrid::LabelText.new :compression_label, model, @session, self
  label.set_attribute 'for', :compression
  label
end