Merge branch 'show-percent-sign' of git://github.com/foodcoop-rostock/foodsoft into foodcoop-rostock-show-percent-sign
This commit is contained in:
commit
8c4da55561
6 changed files with 22 additions and 8 deletions
|
@ -28,7 +28,9 @@
|
||||||
%td= form.text_field 'note', class: 'input-medium'
|
%td= form.text_field 'note', class: 'input-medium'
|
||||||
%td= form.collection_select 'article_category_id', ArticleCategory.all,
|
%td= form.collection_select 'article_category_id', ArticleCategory.all,
|
||||||
:id, :name, { :include_blank => true }, class: 'input-small'
|
:id, :name, { :include_blank => true }, class: 'input-small'
|
||||||
%td= form.text_field 'tax', class: 'input-mini'
|
%td.input-append
|
||||||
|
= form.text_field 'tax', class: 'input-mini'
|
||||||
|
%span.add-on %
|
||||||
%td= form.text_field 'deposit', class: 'input-mini'
|
%td= form.text_field 'deposit', class: 'input-mini'
|
||||||
- unless article.errors.empty?
|
- unless article.errors.empty?
|
||||||
%tr.alert
|
%tr.alert
|
||||||
|
|
|
@ -16,7 +16,9 @@
|
||||||
= f.input :price
|
= f.input :price
|
||||||
= f.input :unit_quantity
|
= f.input :unit_quantity
|
||||||
= f.input :order_number
|
= f.input :order_number
|
||||||
= f.input :tax
|
= f.input :tax, :wrapper => :append do
|
||||||
|
= f.input_field :tax
|
||||||
|
%span.add-on %
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
|
|
|
@ -60,7 +60,9 @@
|
||||||
%td{:style => highlight_new(attrs, :unit)}= form.text_field 'unit', class: 'input-mini'
|
%td{:style => highlight_new(attrs, :unit)}= form.text_field 'unit', class: 'input-mini'
|
||||||
%td{:style => highlight_new(attrs, :unit_quantity)}= form.text_field 'unit_quantity', class: 'input-mini'
|
%td{:style => highlight_new(attrs, :unit_quantity)}= form.text_field 'unit_quantity', class: 'input-mini'
|
||||||
%td{:style => highlight_new(attrs, :price)}= form.text_field 'price', class: 'input-mini'
|
%td{:style => highlight_new(attrs, :price)}= form.text_field 'price', class: 'input-mini'
|
||||||
%td{:style => highlight_new(attrs, :tax)}= form.text_field 'tax', class: 'input-mini'
|
%td{:style => highlight_new(attrs, :tax), class: 'input-append'}
|
||||||
|
= form.text_field 'tax', class: 'input-mini'
|
||||||
|
%span.add-on %
|
||||||
%td{:style => highlight_new(attrs, :deposit)}= form.text_field 'deposit', class: 'input-mini'
|
%td{:style => highlight_new(attrs, :deposit)}= form.text_field 'deposit', class: 'input-mini'
|
||||||
%td= form.select :article_category_id, ArticleCategory.all.map {|a| [ a.name, a.id ] },
|
%td= form.select :article_category_id, ArticleCategory.all.map {|a| [ a.name, a.id ] },
|
||||||
{include_blank: true}, class: 'input-small'
|
{include_blank: true}, class: 'input-small'
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
= f.input :unit
|
= f.input :unit
|
||||||
= f.input :note
|
= f.input :note
|
||||||
= f.input :price
|
= f.input :price
|
||||||
= f.input :tax
|
= f.input :tax, :wrapper => :append do
|
||||||
|
= f.input_field :tax
|
||||||
|
%span.add-on %
|
||||||
|
-# untested, because this view is currently not included (?)
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
= f.association :article_category
|
= f.association :article_category
|
||||||
= f.submit class: 'btn'
|
= f.submit class: 'btn'
|
|
@ -4,7 +4,10 @@
|
||||||
= f.input :unit
|
= f.input :unit
|
||||||
= f.input :note
|
= f.input :note
|
||||||
= f.input :price
|
= f.input :price
|
||||||
= f.input :tax
|
= f.input :tax, :wrapper => :append do
|
||||||
|
= f.input_field :tax
|
||||||
|
%span.add-on %
|
||||||
|
-# untested, because this view is currently not included (?)
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
= f.association :article_category
|
= f.association :article_category
|
||||||
= f.submit
|
= f.submit
|
|
@ -6,7 +6,9 @@
|
||||||
|
|
||||||
- if stock_article.new_record?
|
- if stock_article.new_record?
|
||||||
= f.input :price
|
= f.input :price
|
||||||
= f.input :tax
|
= f.input :tax, :wrapper => :append do
|
||||||
|
= f.input_field :tax
|
||||||
|
%span.add-on %
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
- else
|
- else
|
||||||
= f.input :price, :input_html => {:disabled => 'disabled'}, :hint => t('.form.price_hint')
|
= f.input :price, :input_html => {:disabled => 'disabled'}, :hint => t('.form.price_hint')
|
||||||
|
|
Loading…
Reference in a new issue