Add percent sign for tax in forms

This commit is contained in:
Julius 2013-06-06 17:58:02 +02:00
parent 53518039f1
commit 0f4614eb31
6 changed files with 26 additions and 11 deletions

View file

@ -63,11 +63,14 @@
%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, :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)}.input-append
= form.text_field 'tax', class: 'input-mini'
%span.add-on %
-# untested, because database is not set up locally!
%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 ] },
{include_blank: true}, class: 'input-small'
%hr/
= hidden_field 'supplier', 'id'
= submit_tag 'Alle löschen/aktualisieren', class: 'btn btn-primary'
= link_to 'oder abbrechen', supplier_articles_path(@supplier)
= link_to 'oder abbrechen', supplier_articles_path(@supplier)