foodsoft/app/views/finance/balancing/new.html.haml

49 lines
2 KiB
Text
Raw Normal View History

2009-01-06 11:49:19 +01:00
%h1 Bestellung abrechnen
- if @order.closed?
2009-01-06 11:49:19 +01:00
%p
%b Achtung, Bestellung wurde schon abgerechnet!
.left_column{:style => 'width: 50em'}
.box_title
%h2
= @order.supplier.name + " | " + format_date(@order.starts) + ' --> ' + format_date(@order.ends)
2009-01-06 11:49:19 +01:00
.column_content#summary
#order_summary
= render :partial => "summary"
.right_column{:style => 'width: 20em'}
.box_title
%h2 Aktionen
.column_content
%ul
- unless @order.closed?
%li= link_to "Bestellung abschließen", :action => "confirm", :id => @order
2009-01-06 11:49:19 +01:00
.right_column{:style => 'clear:both;width: 28%'}
.box_title
%h2 Protokoll
.column_content
#note
- unless @order.note.empty?
= simple_format @order.note
- else
%p Hier kannst Du deine Abrechnung kommentieren
%small Protokoll bearbeiten:
= link_to_remote image_tag("b_edit.png", :size => "16x16", :border => "0"), |
:update => 'results', :url => { :action => 'new', :id => @order, :view => 'editNote' }, |
2009-01-06 11:49:19 +01:00
:before => "Element.show('loader')", :success => "Element.hide('loader')" |
%hr/
#comments
= render :partial => 'shared/comments'
.left_column{:style => 'width: 69%'}
.box_title
#editOrderNav
%ul
%li= link_to_remote 'Gruppenübersicht', :update => 'results', :url => { :action => 'new', :id => @order, :view => 'groupsOverview' }, :before => "Element.show('loader')", :success => "Element.hide('loader')"
%li= link_to_remote 'Artikelübersicht', :update => 'results', :url => { :action => 'new', :id => @order, :view => 'articlesOverview' }, :before => "Element.show('loader')", :success => "Element.hide('loader')"
%li= link_to_remote 'Bestellung bearbeiten', :update => 'results', :url => { :action => 'new', :id => @order, :view => 'editResults' }, :before => "Element.show('loader')", :success => "Element.hide('loader')"
2009-01-06 11:49:19 +01:00
.column_content
#results
= render :partial => 'groupsOverview'
%p= link_to_top
#edit_box{:style => 'display:none'}