Refactoring of articles and article_categories. articles are now a nested resource of supplier.

This commit is contained in:
Benjamin Meichsner 2009-01-16 16:19:26 +01:00
parent b38025869a
commit 936e6ef69a
36 changed files with 597 additions and 589 deletions

View file

@ -0,0 +1,18 @@
- title "#{@supplier.name} / Artikel hochladen"
%p
%i
=_ 'The file-type must be "csv" (textfile). Use a semicolon (";") to seperate the fields and double quotes ("Bananas...") for the text.'
%br/
=_ 'The character-set has to be "UTF-8". The first row, maybe used for headers, will be ignored.'
%p
%i
=_ "Correct order of the columns:"
%br/
= [_("Status (x=outlistet)"), _("Number"), _("Name"), _("Note"), _("Manufacturer"), _("Origin"), |
_("Unit"), _("Net price"), _("Tax"), _("Deposit"), _("Unit quantity"), |
_("Scale quantity"), _("Scale price"), _("Category")].join(" | ") |
#uploadArticles.uploadForm
- form_for(:articles, :url => parse_upload_supplier_articles_path(@supplier), :html => { :multipart => true }) do |form|
%p= form.file_field("file")
%p= submit_tag _("Upload articles")