foodsoft/app/views/finance/balancing/_edit_results_by_articles.html.haml
sandoz 5a7fe17437 Make list of ordered articles sortable in _edit_results_by_articles
* For the moment you can sort by article name and order number

Signed-off-by: bennibu <benni@dresdener27.de>
2009-04-03 22:14:48 +08:00

22 lines
771 B
Text

%p{:style => "float:left"}
%b Lieferung bearbeiten
%p{:style => "float:right"}
= remote_link_to "Artikel hinzufügen", :url => {:action => "new_order_article", :id => @order}
%table{:class => "ordered_articles", :style => "clear:both"}
%thead
%tr
%th[sort_td_class_helper "name"]{:colspan => "1"}
= sort_link_helper "Artikel", "name", 1000, "new"
%th[sort_td_class_helper "order_number"]
= sort_link_helper "Nr.", "order_number", 1000, "new"
%th Menge
%th GebGr * Einheit
%th Netto
%th Brutto
%th MwSt
%th Pfand
%th{:colspan => "2"}
%tbody#result_table
- for order_article in @articles
= render :partial => "order_article_result", :locals => {:order_article => order_article}