foodsoft/app/views/stockit/_form.html.haml

19 lines
546 B
Text
Raw Normal View History

2012-10-29 18:28:17 +01:00
= simple_form_for stock_article, :validate => true do |f|
= f.association :supplier
= f.input :name
= f.input :unit
= f.input :note
- if stock_article.new_record?
= f.input :price
2013-06-06 17:58:02 +02:00
= f.input :tax, :wrapper => :append do
= f.input_field :tax
%span.add-on %
= f.input :deposit
- else
= f.input :price, :input_html => {:disabled => 'disabled'}, :hint => t('.form.price_hint')
= f.association :article_category
2012-10-29 18:28:17 +01:00
.form-actions
= f.submit class: 'btn'
= link_to t('ui.or_cancel'), stock_articles_path