2009-01-16 02:17:49 +01:00
|
|
|
- title "Lieferung bearbeiten"
|
|
|
|
|
|
|
|
%p
|
2009-03-22 13:56:54 +01:00
|
|
|
%b Lieferantin:
|
2009-01-16 02:17:49 +01:00
|
|
|
= @supplier.name
|
2009-02-11 18:09:04 +01:00
|
|
|
%p
|
|
|
|
%b Rechnungsbetrag:
|
|
|
|
= link_to_invoice(@delivery)
|
2009-01-16 02:17:49 +01:00
|
|
|
|
2009-02-10 20:06:08 +01:00
|
|
|
- form_for([@supplier,@delivery]) do |f|
|
|
|
|
= f.error_messages
|
|
|
|
= f.hidden_field :supplier_id
|
|
|
|
%p
|
2009-03-11 18:03:28 +01:00
|
|
|
%b Geliefert am:
|
2009-02-10 20:06:08 +01:00
|
|
|
= f.date_select :delivered_on
|
|
|
|
|
|
|
|
%h2 Artikel
|
2009-02-11 18:09:04 +01:00
|
|
|
%i Um die Mengen anzupassen einfach auf die Anzahl klicken.
|
2009-02-10 20:06:08 +01:00
|
|
|
#stock_changes
|
|
|
|
%table.list{:style => "width:40em"}
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Menge
|
|
|
|
%th
|
|
|
|
- for stock_change in @delivery.stock_changes
|
|
|
|
%tr[stock_change]
|
|
|
|
%td= stock_change.stock_article.name
|
|
|
|
%td
|
2009-02-11 18:09:04 +01:00
|
|
|
%span.click-me{:id => stock_change.id, :style => "width:5em"}= stock_change.quantity
|
2009-02-10 20:06:08 +01:00
|
|
|
= javascript_tag "new Ajax.InPlaceEditor('#{stock_change.id}', |
|
|
|
|
'/deliveries/in_place_edit_for_stock_quantity', |
|
2009-02-11 18:09:04 +01:00
|
|
|
{size: 5});" |
|
2009-02-10 20:06:08 +01:00
|
|
|
%td
|
|
|
|
= link_to_remote "Artikel entfernen", |
|
|
|
|
:url => drop_stock_change_supplier_delivery_path(@supplier, @delivery, :stock_change_id => stock_change), |
|
|
|
|
:method => :post |
|
|
|
|
%p
|
|
|
|
= f.submit "Speichern"
|
|
|
|
|
|
|
|
= link_to 'Zurück', supplier_deliveries_path(@supplier)
|
|
|
|
|