foodsoft/app/views/suppliers/index.haml

29 lines
864 B
Plaintext
Raw Normal View History

- title "LieferantInnen"
2009-01-06 11:49:19 +01:00
- if @current_user.role_suppliers?
%p
%i
Erstelle eine
= link_to 'neue Lieferantin', new_supplier_path
2009-01-06 11:49:19 +01:00
oder
= 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'
= 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