Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
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.
 
 
 
 
 

50 lines
1.2 KiB

  1. %h1= auth['authority_name']
  2. %h2 Summary
  3. %p.warning There are typically two applications per kiosk: one for full planning permission or telecoms prior approval, and one for advertisement consent. So the number of kiosks applied for is half the number of applications.
  4. %table
  5. %thead
  6. %tr
  7. %th Status
  8. %th Decision
  9. %th Appeal status
  10. %th Appeal decision
  11. %th Applications
  12. %tbody
  13. - summary.each do |row|
  14. %tr
  15. %td= cleanup(row['status'])
  16. %td= cleanup(row['decision'])
  17. %td= cleanup(row['appeal_status'])
  18. %td= cleanup(row['appeal_decision'])
  19. %td.right= row['qty']
  20. %h2 Applications
  21. %p
  22. - csv_fn = slug(auth['authority_name']) + '.csv'
  23. %a.button{ :href => csv_fn, :download => csv_fn }
  24. Download CSV data
  25. %table
  26. %thead
  27. %tr
  28. %th Received
  29. %th Reference
  30. %th Address
  31. -# %th Proposal
  32. %th Status
  33. %th Decision
  34. - apps.each do |app|
  35. %tr
  36. %td= short_date(app['date_received'])
  37. %td
  38. %a{ href: app['info_url']}
  39. = app['council_reference']
  40. %td= app['address']
  41. -# %td= app['description']
  42. %td= cleanup(app['status'])
  43. %td= cleanup(app['decision'])