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
|
|
|
|
2011-05-19 19:49:37 +02:00
|
|
|
= form_tag(create_from_upload_supplier_articles_path(@supplier)) do
|
2009-01-16 16:19:26 +01:00
|
|
|
%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
|
2011-05-19 19:49:37 +02:00
|
|
|
= fields_for "articles[]", article do |form|
|
2009-01-16 16:19:26 +01:00
|
|
|
%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
|
|
|
|