An open source, stand-alone, customisable public spending data web app.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
919 B

  1. .grid_12
  2. %h2= @page_title = @service.name + " (Service)"
  3. %ul#breadcrumb
  4. %li.home
  5. %a{ :href => '/'} Home
  6. %li
  7. %a{ :href => '/services' } Services
  8. %li
  9. = @service.name
  10. %p.noprint.download
  11. %a{ :href => "/services/#{@service.id}.csv" }
  12. Download data as CSV
  13. %table
  14. %tr
  15. %th Date
  16. %th Directorate
  17. %th Supplier
  18. %th £
  19. - for payment in @service.payments
  20. %tr
  21. %td= payment.d.strftime("%d %b %Y")
  22. %td
  23. %a{ :href => '/directorates/' + payment.directorate.id.to_s }
  24. = payment.directorate.name
  25. %td
  26. %a{ :href => '/suppliers/' + payment.supplier.id.to_s }
  27. = payment.supplier.name
  28. %td.right= sprintf("%0d", payment.amount)
  29. %tr
  30. %td
  31. %td
  32. %td
  33. %strong TOTAL
  34. %td.right= sprintf("%0d", @total)