2009-01-08 16:33:27 +01:00
|
|
|
- title "LieferantInnen"
|
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
- if @current_user.role_suppliers?
|
|
|
|
%p
|
|
|
|
%i
|
|
|
|
Erstelle eine
|
2009-01-08 16:33:27 +01:00
|
|
|
= link_to 'neue Lieferantin', new_supplier_path
|
2009-01-06 11:49:19 +01:00
|
|
|
oder
|
2009-01-08 16:33:27 +01:00
|
|
|
= link_to 'importiere', shared_suppliers_suppliers_path
|
2009-01-06 11:49:19 +01:00
|
|
|
aus der externen ArtikelDatenbank.
|
|
|
|
|
|
|
|
.left_column{:style => "width:100%"}
|
|
|
|
.box_title
|
|
|
|
%h2 Übersicht
|
|
|
|
.column_content
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
- for column in @supplier_column_names
|
|
|
|
%th= column
|
|
|
|
%th
|
|
|
|
- for supplier in @suppliers
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'suppliers')}
|
|
|
|
- for column in @supplier_columns
|
|
|
|
%td
|
|
|
|
- if column == 'name'
|
2009-01-08 16:33:27 +01:00
|
|
|
= link_to supplier[column], supplier
|
2009-01-06 11:49:19 +01:00
|
|
|
- else
|
|
|
|
=h supplier[column]
|
|
|
|
%td= link_to 'Artikel anzeigen', :controller => 'articles', :action => 'list', :id => supplier
|