foodsoft/app/views/suppliers/list.haml
2009-01-06 11:49:19 +01:00

28 lines
No EOL
880 B
Text

%h1 Lieferantinnen
- if @current_user.role_suppliers?
%p
%i
Erstelle eine
= link_to 'neue Lieferantin', :action => 'new'
oder
= link_to 'importiere', :action => 'shared_suppliers'
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'
= link_to supplier[column], :action => 'show', :id => supplier
- else
=h supplier[column]
%td= link_to 'Artikel anzeigen', :controller => 'articles', :action => 'list', :id => supplier