show supplier user-interface update

This commit is contained in:
wvengen 2014-02-24 14:33:05 +01:00
parent 0014435663
commit 0fa9bebac9
11 changed files with 94 additions and 60 deletions

View file

@ -0,0 +1,21 @@
= simple_form_for @supplier do |f|
- if @supplier.shared_supplier
.alert.alert-info
= t 'suppliers.shared_supplier_note'
= f.hidden_field :shared_supplier_id
= f.input :name
= f.input :address
= f.input :phone
= f.input :phone2
= f.input :fax
= f.input :email
= f.input :url
= f.input :contact_person
= f.input :customer_number
= f.input :delivery_days
= f.input :order_howto, as: :text, input_html: {rows: 5}
= f.input :note, as: :text, input_html: {rows: 5}
= f.input :min_order_quantity
.form-actions
= f.submit class: 'btn'
= link_to t('ui.or_cancel'), suppliers_path