foodsoft/app/views/suppliers/index.haml

42 lines
1.2 KiB
Text
Raw Normal View History

- title "Artikeldatenbank"
.left_column{:style => "width:50%"}
2009-01-06 11:49:19 +01:00
.box_title
%h2 Lieferanten
2009-01-06 11:49:19 +01:00
.column_content
%p
%i
Erstelle eine
= link_to 'neue Lieferantin', new_supplier_path
oder
= link_to 'importiere', shared_suppliers_suppliers_path
aus der externen ArtikelDatenbank.
%table.list
%thead
%tr
%th Name
%th Telefon
%th KundenNr
%th
%tbody
- for supplier in @suppliers
%tr{:class => cycle('even','odd', :name => 'suppliers')}
2009-02-10 13:26:10 +01:00
%td= link_to "<b>#{h(supplier.name)}</b> (#{supplier.articles.count})", supplier_articles_path(supplier)
%td=h supplier.phone
%td=h supplier.customer_number
%td= link_to "Anzeigen", supplier
.right_column{:style => "width:47%"}
.box_title
2009-01-18 17:42:51 +01:00
%h2 Letzte Lieferungen
.column_content
%table{:style => "width:50em"}
%tr
%th Datum
%th Betrag
%th Lieferant
- for delivery in @deliveries
%tr
%td= link_to delivery.delivered_on, [delivery.supplier, delivery]
%td= link_to_invoice(delivery)
%td=h delivery.supplier.name