Class: YDIM::Html::View::InvoicesSubnavigation
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- YDIM::Html::View::InvoicesSubnavigation
- Defined in:
- lib/ydim/html/view/invoices.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :is_open, [1,0] => :is_due, [2,0] => :is_paid, [3,0] => :is_trash, }
- CSS_ID_MAP =
['subnavigation']
Class Method Summary collapse
Class Method Details
.status_links(*names) ⇒ Object
126 127 128 129 130 131 132 133 134 135 |
# File 'lib/ydim/html/view/invoices.rb', line 126 def InvoicesSubnavigation.status_links(*names) names.each { |name| define_method(name) { |model| link = HtmlGrid::Link.new(name, model, @session, self) url = @lookandfeel._event_url(:ajax_status, {:status => name }) link.href = "javascript:reload_list('invoices', '#{url}');" link } } end |