2009-01-18 17:42:51 +01:00
|
|
|
- title "Lagerübersicht"
|
|
|
|
|
|
|
|
%p
|
|
|
|
- form_tag do
|
|
|
|
Neue Lieferung anlegen für:
|
|
|
|
= select_tag :new_delivery, |
|
|
|
|
options_for_select([" -- Lieferantin wählen --", ""] + |
|
|
|
|
Supplier.find(:all).collect {|s| [ s.name, url_for(new_supplier_delivery_path(s))] }), |
|
|
|
|
:onchange => "redirectTo(this)", :style => "font-size: 0.9em;margin-left:1em;" |
|
2009-02-05 16:40:02 +01:00
|
|
|
%p
|
|
|
|
= link_to "Lagerbestellung online stellen", new_order_path(:supplier_id => 0)
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Artikel
|
|
|
|
%th Menge
|
|
|
|
%th Einheit
|
|
|
|
%th Preis
|
|
|
|
%th Lieferant
|
2009-02-06 16:26:35 +01:00
|
|
|
%th Kategorie
|
2009-01-18 17:42:51 +01:00
|
|
|
%tbody
|
|
|
|
- for article in @articles
|
|
|
|
%tr{:class => cycle("even", "odd")}
|
|
|
|
%td=h article.name
|
|
|
|
%td= article.quantity
|
|
|
|
%td= article.unit
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= article.price
|
2009-01-18 17:42:51 +01:00
|
|
|
%td= link_to article.supplier.name, article.supplier
|
2009-02-06 16:26:35 +01:00
|
|
|
%td= article.article_category.name
|