Class: ODDB::View::Substances::EmptyResultForm

Inherits:
HtmlGrid::Form
  • Object
show all
Defined in:
src/view/substances/result.rb

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  :search_query,
  [0,0,1] =>  :submit,
  [0,1]   => :title_none_found,
  [0,2]   => 'e_empty_result',
  [0,3]   => 'explain_search',
}
CSS_MAP =
{
  [0,0]     =>  'search',  
  [0,1]     =>  'th',
  [0,2,1,2] =>  'list atc',
}
CSS_CLASS =
'composite'
EVENT =
:search
FORM_METHOD =
'GET'
LEGACY_INTERFACE =
false
SYMBOL_MAP =
{
  :search_query   => View::SearchBar,  
}

Instance Method Summary (collapse)

Instance Method Details

- (Object) title_none_found(model)



52
53
54
55
# File 'src/view/substances/result.rb', line 52

def title_none_found(model)
  query = @session.persistent_user_input(:search_query)
  @lookandfeel.lookup(:title_none_found, query)
end