show supplier user-interface update
This commit is contained in:
parent
0014435663
commit
0fa9bebac9
11 changed files with 94 additions and 60 deletions
21
app/views/suppliers/_form.html.haml
Normal file
21
app/views/suppliers/_form.html.haml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue