Hide ordergroups with result = 0.

This commit is contained in:
Benjamin Meichsner 2009-04-03 18:01:19 +02:00
parent 30aa04b710
commit 578002501b

View file

@ -9,7 +9,7 @@
%td{:colspan => "3",:style => "width:14em"} %td{:colspan => "3",:style => "width:14em"}
= remote_link_to '[Gruppe hinzufügen]', :url => {:action => "new_group_order_article", :id => order_article} = remote_link_to '[Gruppe hinzufügen]', :url => {:action => "new_group_order_article", :id => order_article}
%tbody %tbody
- for group_order_article in order_article.group_order_articles.all(:include => [:group_order]) - for group_order_article in order_article.group_order_articles.ordered.all(:include => [:group_order])
%tr{:class => cycle('even', 'odd', :name => 'results')}[group_order_article] %tr{:class => cycle('even', 'odd', :name => 'results')}[group_order_article]
%td %td
%td{:style=>"width:50%"} %td{:style=>"width:50%"}