foodsoft/app/views/suppliers/_form.haml
2012-10-17 20:45:52 +02:00

20 lines
No EOL
631 B
Text

= simple_form_for @supplier do |f|
- if @supplier.shared_supplier
.alert.alert-success Lieferantin ist mit externer Datenbank verknüpft.
= 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 'oder abbrechen', suppliers_path