Introduced invoices and deliveries. Integration (especially of deliveries) isn't finished yet.
This commit is contained in:
parent
1894f27fe0
commit
30f3d199d3
65 changed files with 1193 additions and 209 deletions
29
app/views/suppliers/index.haml
Normal file
29
app/views/suppliers/index.haml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
- title "LieferantInnen"
|
||||
|
||||
- if @current_user.role_suppliers?
|
||||
%p
|
||||
%i
|
||||
Erstelle eine
|
||||
= link_to 'neue Lieferantin', new_supplier_path
|
||||
oder
|
||||
= link_to 'importiere', shared_suppliers_suppliers_path
|
||||
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
|
||||
- else
|
||||
=h supplier[column]
|
||||
%td= link_to 'Artikel anzeigen', :controller => 'articles', :action => 'list', :id => supplier
|
||||
Loading…
Add table
Add a link
Reference in a new issue