2009-01-16 16:19:26 +01:00
|
|
|
- title "#{@supplier.name} / Artikel hochladen"
|
|
|
|
%p
|
|
|
|
%i
|
2009-02-10 13:26:10 +01:00
|
|
|
Bitte überprüfe die eingelesenen Artikel.
|
2009-01-16 16:19:26 +01:00
|
|
|
%br/
|
2009-02-10 13:26:10 +01:00
|
|
|
Achtung, momentan gibt es keine Überprüfung auf doppelte Artikel.
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
|
|
- form_tag(create_from_upload_supplier_articles_path(@supplier)) do
|
|
|
|
%table
|
|
|
|
%tr
|
2009-02-10 13:26:10 +01:00
|
|
|
%th Nummer
|
|
|
|
%th Name
|
|
|
|
%th Notiz
|
|
|
|
%th Hersteller
|
|
|
|
%th Herkunft
|
|
|
|
%th Einheit
|
|
|
|
%th Nettopreis
|
|
|
|
%th MwSt
|
|
|
|
%th Pfand
|
|
|
|
%th Gebindegröße
|
|
|
|
%th Kategorie
|
2009-01-16 16:19:26 +01:00
|
|
|
- for article in @articles
|
|
|
|
- fields_for "articles[]", article do |form|
|
|
|
|
%tr{:class => cycle('even', 'odd')}
|
|
|
|
%td= form.text_field 'order_number', :size => 6
|
|
|
|
%td= form.text_field 'name', :size => 0
|
|
|
|
%td= form.text_field 'note', :size => 15
|
|
|
|
%td= form.text_field 'manufacturer', :size => 6
|
|
|
|
%td= form.text_field 'origin', :size => 6
|
|
|
|
%td= form.text_field 'unit', :size => 5
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= form.text_field 'price', :size => 4
|
2009-01-16 16:19:26 +01:00
|
|
|
%td= form.text_field 'tax', :size => 4
|
|
|
|
%td= form.text_field 'deposit', :size => 4
|
|
|
|
%td= form.text_field 'unit_quantity', :size => 4
|
|
|
|
%td= form.select 'article_category_id', ArticleCategory.find(:all).collect {|a| [ a.name, a.id ] }
|
|
|
|
%p
|
2009-02-10 13:26:10 +01:00
|
|
|
= submit_tag "Speichere neue Artikel für #{@supplier.name}"
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
2009-02-10 13:26:10 +01:00
|
|
|
= link_to "Zurück", upload_supplier_articles_path(@supplier)
|
2009-01-16 16:19:26 +01:00
|
|
|
|