foodsoft/app/views/suppliers/show.haml

57 lines
1.6 KiB
Text
Raw Normal View History

2012-10-17 20:45:52 +02:00
- title @supplier.name
2009-01-06 11:49:19 +01:00
2012-10-17 20:45:52 +02:00
.row-fluid
.span6
2009-01-18 17:42:51 +01:00
- if shared_supplier = @supplier.shared_supplier
2012-10-17 20:45:52 +02:00
.alert.alert-info
Die Lieferantin ist mit der externen Artikledatenbank verknüpft.
2009-01-18 17:42:51 +01:00
2012-10-17 20:45:52 +02:00
%dl.dl-horizontal
%dt Adresse:
%dd= @supplier.address
%dt Telefon:
%dd= @supplier.phone
%dt Telefon2:
%dd= @supplier.phone2
%dt FAX:
%dd= @supplier.fax
%dt Email:
%dd= @supplier.email
%dt Hompage:
%dd= @supplier.url
%dt Kontakt-Person:
%dd= @supplier.contact_person
%dt Kundennummer:
%dd= @supplier.customer_number
%dt Liefertage:
%dd= @supplier.delivery_days
%dt BestellHowTo:
%dd= @supplier.order_howto
%dt Notiz:
%dd= @supplier.note
%dt Liefertage:
%dd= @supplier.delivery_days
%dt Mindestbestellmenge:
%dd= @supplier.min_order_quantity
.clearfix
2009-01-18 17:42:51 +01:00
- if @current_user.role_suppliers?
2012-10-17 20:45:52 +02:00
.form-actions
= link_to 'Bearbeiten', edit_supplier_path(@supplier), class: 'btn'
= link_to 'Löschen', @supplier, :confirm => 'Bist Du sicher?', :method => :delete, class: 'btn btn-danger'
2009-01-18 17:42:51 +01:00
2012-10-17 20:45:52 +02:00
.span6
2009-01-18 17:42:51 +01:00
%h2 Letzte Lieferungen
2012-10-17 20:45:52 +02:00
%table.table.table-horizontal
%thead
2009-01-18 17:42:51 +01:00
%tr
2012-10-17 20:45:52 +02:00
%th Datum
%th Betrag
%tbody
- for delivery in @deliveries
%tr
%td= link_to delivery.delivered_on, [@supplier, delivery]
%td= link_to_invoice(delivery)
.form-actions
= link_to "Neue Lieferung anlegen", new_supplier_delivery_path(@supplier), class: 'btn'
2009-01-18 17:42:51 +01:00
= link_to "Zeige alle Lieferungen", supplier_deliveries_path(@supplier)