An open source, stand-alone, customisable public spending data web app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

service.haml 1.3 KiB

14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .grid_12
  2. %ul#breadcrumb
  3. %li.home
  4. %a{ :href => '/'} Home
  5. %li
  6. %a{ :href => '/services' } Services
  7. %li
  8. = @service.name
  9. %h2= @page_title = @service.name
  10. %p
  11. A service in the
  12. %a{ :href => '/directorates/' + @service.directorate.slug }
  13. = @service.directorate.name
  14. Directorate
  15. %p.noprint.download
  16. %a{ :href => "/services/#{@service.slug}.csv" }
  17. Download data as CSV
  18. %h3 Summary
  19. %table
  20. %tr
  21. %th.right Payments
  22. %th.right Max £
  23. %th.right Min £
  24. %th.right Average £
  25. %tr
  26. %td.right= @count
  27. %td.right= sprintf("%0d", @max)
  28. %td.right= sprintf("%0d", @min)
  29. %td.right= sprintf("%0d", @avg)
  30. %h3 Payments to Suppliers
  31. %table
  32. %tr
  33. %th Date
  34. %th Ref.
  35. %th Supplier
  36. %th.right £
  37. - for payment in @service.payments
  38. %tr
  39. %td= payment.d.strftime("%d %b %Y")
  40. %td.right
  41. %a{ :href => "/payments/#{payment.id}" }
  42. = payment.id
  43. %td
  44. %a{ :href => '/suppliers/' + payment.supplier.slug }
  45. = payment.supplier.name
  46. %td.right= sprintf("%0d", payment.amount)
  47. %tr
  48. %td
  49. %td
  50. %td
  51. %strong TOTAL
  52. %td.right= sprintf("%0d", @total)