app/views/esr_files/show.html.haml in vesr-0.10.1 vs app/views/esr_files/show.html.haml in vesr-0.11.0

- old
+ new

@@ -1,13 +1,20 @@ .contextual = link_to_function "Protokoll drucken", 'window.print()', :class => "icon icon-print" = link_to "VESR Liste", esr_files_path, :class => "icon icon-book" -%h2 - VESR Protokoll vom #{l(@esr_file.updated_at.to_date)} -= render :partial => 'list_records', :object => @esr_file.esr_records.valid -- unless @esr_file.esr_records.bad.empty? + = link_to t_action(:show_all), {:show_valid => true}, :class => 'icon icon-show_all' unless params['show_valid'] + +%h2 VESR Protokoll vom #{l(@esr_file.updated_at.to_date)} + +- unless @esr_file.esr_records.invalid.empty? %h3 Falscher Betrag - = render :partial => 'list_records', :object => @esr_file.esr_records.bad + = render 'esr_records/list', :esr_records => @esr_file.esr_records.invalid + - unless @esr_file.esr_records.missing.empty? %h3 Rechnung nicht gefunden - = render :partial => 'list_records', :object => @esr_file.esr_records.missing + = render 'esr_records/list', :esr_records => @esr_file.esr_records.missing + +- if params['show_valid'].present? + %h3 Korrekte Zahlungen + = render 'esr_records/list', :esr_records => @esr_file.esr_records.valid + = render :partial => 'sidebar'