replace skeleton files by previous version; apply obvious fixes
This commit is contained in:
parent
1f5cbcd6d1
commit
2133be2436
35 changed files with 1086 additions and 39 deletions
26
app/views/articles/upload.haml
Normal file
26
app/views/articles/upload.haml
Normal file
|
@ -0,0 +1,26 @@
|
|||
%h1
|
||||
Artikel für
|
||||
= @supplier.name
|
||||
hochladen
|
||||
%p
|
||||
%i Bitte (BNN-)Datei zum upload auswählen
|
||||
#uploadArticles.uploadForm
|
||||
= form_for(:articles, :url => {:controller => 'articles', :action => 'parse'}, :html => { :multipart => true }) do |form|
|
||||
%p
|
||||
Upload:
|
||||
= form.file_field("file")
|
||||
%p
|
||||
Datei-Format auswählen:
|
||||
%select{:name => 'type'}
|
||||
= options_for_select([["", ""]] + ArticleImport::file_formats.invert.map{|f,k| [f::NAME, k]})
|
||||
%p
|
||||
Zeichenkodierung:
|
||||
%select{:name => 'encoding'}
|
||||
= options_for_select({"Default" => "", "UTF-8" => "UTF-8", "IBM850 (Terra)" => "IBM850", "ISO-8859-15 (Ökotopia)" => "ISO-8859-15"})
|
||||
%p
|
||||
= check_box_tag :delete_existing
|
||||
= label_tag :delete_existing, "Delete existing articles first"
|
||||
|
||||
= submit_tag("Artikel hochladen")
|
||||
= hidden_field_tag :supplier_id, @supplier.id
|
||||
%p= link_to 'zurück', supplier_articles_url(@supplier)
|
Loading…
Add table
Add a link
Reference in a new issue