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.

directorate.haml 711 B

14 years ago
123456789101112131415161718192021222324252627282930
  1. .grid_12
  2. %h2= @page_title = @directorate.name + " Directorate"
  3. %ul#breadcrumb
  4. %li.home
  5. %a{ :href => '/'} Home
  6. %li
  7. %a{ :href => '/directorates' } Directorates
  8. %li
  9. = @directorate.name
  10. %table
  11. %tr
  12. %th Date
  13. %th Service
  14. %th Supplier
  15. %th £
  16. - for payment in @directorate.payments
  17. %tr
  18. %td= payment.d.strftime("%d %b %Y")
  19. %td
  20. %a{ :href => '/services/' + payment.service.id.to_s }
  21. = payment.service.name
  22. %td
  23. %a{ :href => '/suppliers/' + payment.supplier.id.to_s }
  24. = payment.supplier.name
  25. %td.right= sprintf("%0d", payment.amount)