foodsoft/app/views/suppliers/_form.haml

22 lines
618 B
Plaintext
Raw Normal View History

2012-10-17 20:45:52 +02:00
= simple_form_for @supplier do |f|
2011-05-18 15:52:06 +02:00
- if @supplier.shared_supplier
2013-02-07 16:30:47 +01:00
.alert.alert-success
= t 'suppliers.shared_supplier_note'
2011-05-18 15:52:06 +02:00
= 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
2012-10-17 20:45:52 +02:00
= f.input :order_howto, as: :text, input_html: {rows: 5}
= f.input :note, as: :text, input_html: {rows: 5}
2011-05-18 15:52:06 +02:00
= f.input :min_order_quantity
2012-10-17 20:45:52 +02:00
.form-actions
= f.submit class: 'btn'
2013-02-07 16:30:47 +01:00
= link_to t('.cancel'), suppliers_path