2013-03-22 00:20:30 +01:00
|
|
|
- title t('.title', supplier: @supplier.name)
|
2015-03-27 15:19:50 +01:00
|
|
|
|
|
|
|
%p= t '.text_1', supplier: @supplier.name
|
|
|
|
|
|
|
|
%table.table.table-bordered
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t '.field.status'
|
|
|
|
%th= Article.human_attribute_name(:order_number)
|
|
|
|
%th= Article.human_attribute_name(:name)
|
|
|
|
%th= Article.human_attribute_name(:note)
|
|
|
|
%th= Article.human_attribute_name(:manufacturer)
|
|
|
|
%th= Article.human_attribute_name(:origin)
|
|
|
|
%th= Article.human_attribute_name(:unit)
|
|
|
|
%th= Article.human_attribute_name(:price)
|
|
|
|
%th= Article.human_attribute_name(:tax)
|
|
|
|
%th= Article.human_attribute_name(:deposit)
|
|
|
|
%th= Article.human_attribute_name(:unit_quantity)
|
|
|
|
%th.muted= t '.fields.reserved'
|
|
|
|
%th.muted= t '.fields.reserved'
|
|
|
|
%th= Article.human_attribute_name(:article_category)
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%td 1234A
|
|
|
|
%td= t '.sample.walnuts'
|
|
|
|
%td
|
|
|
|
%td= t '.sample.supplier_1'
|
|
|
|
%td CA
|
|
|
|
%td 500 gr
|
|
|
|
%td 8.90
|
|
|
|
%td= FoodsoftConfig[:tax_default] || 6
|
|
|
|
%td 0
|
|
|
|
%td 6
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td= t '.sample.nuts'
|
|
|
|
%tr
|
|
|
|
%td x
|
|
|
|
%td 4321Z
|
|
|
|
%td= t '.sample.tomato_juice'
|
|
|
|
%td= t '.sample.organic'
|
|
|
|
%td= t '.sample.supplier_2'
|
|
|
|
%td IN
|
|
|
|
%td 1.5 l
|
|
|
|
%td 4.35
|
|
|
|
%td= FoodsoftConfig[:tax_default] || 6
|
|
|
|
%td 0
|
|
|
|
%td 1
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td= t '.sample.juices'
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%td 4322Q
|
|
|
|
%td= t '.sample.tomato_juice'
|
|
|
|
%td= t '.sample.organic'
|
|
|
|
%td= t '.sample.supplier_3'
|
|
|
|
%td TR
|
|
|
|
%td 1.2 l
|
|
|
|
%td 4.02
|
|
|
|
%td= FoodsoftConfig[:tax_default] || 6
|
|
|
|
%td 0
|
|
|
|
%td 2
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td= t '.sample.juices'
|
|
|
|
|
|
|
|
%p= t '.text_2'
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-28 18:03:50 +01:00
|
|
|
= form_for :articles, :url => parse_upload_supplier_articles_path(@supplier),
|
2015-04-10 19:41:08 +02:00
|
|
|
:html => { multipart: true, class: "form-horizontal" } do |f|
|
|
|
|
|
2023-01-31 15:25:36 +01:00
|
|
|
|
2015-04-10 19:41:08 +02:00
|
|
|
.control-group
|
2023-01-31 15:25:36 +01:00
|
|
|
%label(for="articles_file")
|
|
|
|
%strong= t '.file_label'
|
2015-04-10 19:41:08 +02:00
|
|
|
= f.file_field "file"
|
2023-01-31 15:25:36 +01:00
|
|
|
%label(for="articles_file")
|
|
|
|
%strong="select the file type you are about to upload"
|
|
|
|
=f.collection_select :type, ["bnn","foodsoft","odin"], :to_s, :to_s
|
2015-04-10 19:41:08 +02:00
|
|
|
|
|
|
|
.control-group
|
|
|
|
%label(for="articles_outlist_absent")
|
|
|
|
= f.check_box "outlist_absent"
|
2015-04-10 20:05:42 +02:00
|
|
|
= t '.options.outlist_absent'
|
|
|
|
%label(for="articles_convert_units")
|
|
|
|
= f.check_box "convert_units"
|
|
|
|
= t '.options.convert_units'
|
2015-04-10 19:41:08 +02:00
|
|
|
|
2012-10-28 18:03:50 +01:00
|
|
|
.form-actions
|
2015-03-27 14:38:16 +01:00
|
|
|
= submit_tag t('.submit'), class: 'btn btn-primary'
|
|
|
|
= link_to t('ui.or_cancel'), supplier_articles_path(@supplier)
|