2009-01-16 02:17:49 +01:00
|
|
|
- title "Neue Lieferung von #{@supplier.name}"
|
|
|
|
|
2009-02-06 16:26:35 +01:00
|
|
|
.left_column
|
|
|
|
- form_for([@supplier,@delivery]) do |f|
|
|
|
|
.box_title
|
|
|
|
%h2 Lieferung anlegen
|
|
|
|
.column_content
|
|
|
|
= f.error_messages
|
|
|
|
= f.hidden_field :supplier_id
|
|
|
|
%p
|
|
|
|
%b= f.label :delivered_on
|
|
|
|
= f.date_select :delivered_on
|
|
|
|
%h2 Lagerartikel des Lieferanten
|
|
|
|
#stock_changes
|
|
|
|
= render :partial => 'stock_change', :collection => @delivery.stock_changes
|
|
|
|
%p
|
|
|
|
= f.submit "Lieferung anlegen"
|
|
|
|
|
|
|
|
.right_column{:style => "width:35em;"}
|
|
|
|
.box_title
|
|
|
|
%h2 Neuen Lagerartikel anlegen
|
|
|
|
.column_content
|
|
|
|
#new_stock_article
|
|
|
|
= render :partial => 'new_stock_article', :locals => {:stock_article => @supplier.stock_articles.build}
|
|
|
|
|
|
|
|
%p{:style => "clear:both"}
|
|
|
|
= link_to 'Zurück', supplier_deliveries_path(@supplier)
|