diff options
| author | Matthew Somerville <matthew@mysociety.org> | 2020-06-19 17:28:47 +0100 |
|---|---|---|
| committer | M Somerville <matthew-github@dracos.co.uk> | 2020-11-11 10:29:20 +0000 |
| commit | b8fb6677b54f99e53105de0e242be94969a53567 (patch) | |
| tree | 05311d8922b0064177bbf2939df7867d6c127b21 /templates | |
| parent | d90e1157ee31c374248da0db42b70456c37ddd5b (diff) | |
[Bromley] Treat some enquiries same as missed.
In terms of within-two-day and no existing open event.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/web/bromley/waste/enquiry-problem.html | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/templates/web/bromley/waste/enquiry-problem.html b/templates/web/bromley/waste/enquiry-problem.html index 948cb91f3..db4cb1848 100644 --- a/templates/web/bromley/waste/enquiry-problem.html +++ b/templates/web/bromley/waste/enquiry-problem.html @@ -1,13 +1,29 @@ -[% PROCESS waste/enquiry.html +[% + +f = []; +service_id = c.req.params.service_id; +service = services.$service_id; +IF service.report_allowed; + IF !service.enquiry_open_events.2118; + f.push( { value = 'Gate not closed', label = 'A gate or enclosure wasn’t closed after the collection' } ); + END; + IF !service.enquiry_open_events.2119; + f.push( { value = 'Waste spillage', label = 'Bin contents were spilled during the collection' } ); + END; + IF !service.enquiry_open_events.2120; + f.push( { value = 'Bin not returned', label = 'A bin wasn’t returned after the collection' } ); + END; +END; +f.push( + { value = 'Crew behaviour', label = 'There was a problem with the crew’s behaviour' }, + { value = 'Wrongful removal', label = 'Something was wrongly removed during the collection' }, + { value = 'Damage to 3rd party', label = 'Someone else’s vehicle was damaged' }, + { value = 'Damage to Property', label = 'My property was damaged' }, + { value = 'Failure to deliver bin', label = 'My bin was not delivered' }, +); + +PROCESS waste/enquiry.html title = 'Report a problem' - field_options = [ - { value = 'Gate not closed', label = 'A gate or enclosure wasn’t closed after the collection' }, - { value = 'Waste spillage', label = 'Bin contents were spilled during the collection' }, - { value = 'Bin not returned', label = 'A bin wasn’t returned after the collection' }, - { value = 'Crew behaviour', label = 'There was a problem with the crew’s behaviour' }, - { value = 'Wrongful removal', label = 'Something was wrongly removed during the collection' }, - { value = 'Damage to 3rd party', label = 'Someone else’s vehicle was damaged' }, - { value = 'Damage to Property', label = 'My property was damaged' }, - { value = 'Failure to deliver bin', label = 'My bin was not delivered' }, - ] + field_options = f; + %] |
