2012-10-29 18:28:17 +01:00
|
|
|
= simple_form_for stock_article, :validate => true do |f|
|
2011-05-27 14:09:01 +02:00
|
|
|
= f.association :supplier
|
|
|
|
= f.input :name
|
|
|
|
= f.input :unit
|
|
|
|
= f.input :note
|
|
|
|
|
2009-02-11 18:09:04 +01:00
|
|
|
- if stock_article.new_record?
|
2011-05-27 14:09:01 +02:00
|
|
|
= f.input :price
|
2013-06-06 17:58:02 +02:00
|
|
|
= f.input :tax, :wrapper => :append do
|
|
|
|
= f.input_field :tax
|
|
|
|
%span.add-on %
|
2011-05-27 14:09:01 +02:00
|
|
|
= f.input :deposit
|
2009-02-11 18:09:04 +01:00
|
|
|
- else
|
2011-05-27 14:09:01 +02:00
|
|
|
= f.input :price, :input_html => {:disabled => 'disabled'},
|
|
|
|
:hint => "Um Chaos zu vermeiden können bis auf weiteres die Preise von angelegten Lagerartikeln nicht mehr verändert werden."
|
|
|
|
= f.association :article_category
|
2012-10-29 18:28:17 +01:00
|
|
|
.form-actions
|
|
|
|
= f.submit class: 'btn'
|
2013-06-06 17:58:02 +02:00
|
|
|
= link_to "oder abbrechen", stock_articles_path
|