diff options
Diffstat (limited to 'templates/web/bromley/waste')
-rw-r--r-- | templates/web/bromley/waste/enquiry-problem.html | 29 | ||||
-rw-r--r-- | templates/web/bromley/waste/services.html | 39 | ||||
-rw-r--r-- | templates/web/bromley/waste/services_extra.html | 15 |
3 files changed, 83 insertions, 0 deletions
diff --git a/templates/web/bromley/waste/enquiry-problem.html b/templates/web/bromley/waste/enquiry-problem.html new file mode 100644 index 000000000..db4cb1848 --- /dev/null +++ b/templates/web/bromley/waste/enquiry-problem.html @@ -0,0 +1,29 @@ +[% + +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 = f; + +%] diff --git a/templates/web/bromley/waste/services.html b/templates/web/bromley/waste/services.html new file mode 100644 index 000000000..6fc654f07 --- /dev/null +++ b/templates/web/bromley/waste/services.html @@ -0,0 +1,39 @@ +[% IF unit.service_id == 531 ~%] +[% domestic_collection = 1 ~%] +[% END ~%] +[% IF unit.report_open %] + <span class="waste-service-descriptor"> + A [% unit.service_name FILTER lower %] collection has been reported as missed + [% IF unit.report_open.report %] – <a href="[% unit.report_open.report.url %]" class="waste-service-link">check status</a>[% END %] + </span> +[% ELSIF unit.report_allowed %] + [% any_report_allowed = 1 %] + <form method="post" action="[% c.uri_for_action('waste/report', [ property.id ]) %]"> + <input type="hidden" name="token" value="[% csrf_token %]"> + <input type="hidden" name="service-[% unit.service_id %]" value="1"> + <input type="submit" value="Report a [% unit.service_name FILTER lower %] collection as missed" class="waste-service-descriptor waste-service-link"> + </form> +[% ELSIF unit.report_locked_out %] + <span class="waste-service-descriptor">A missed collection cannot be reported, please see the last collection status above.</span> +[% ELSE %] + <span class="waste-service-descriptor">Please note that missed collections can only be reported within 2 working days of your scheduled collection day.</span> +[% END %] + <a href="[% c.uri_for_action('waste/enquiry', [ property.id ]) %]?template=problem&service_id=[% unit.service_id %]" class="waste-service-link waste-service-descriptor">Report a problem with a [% unit.service_name FILTER lower %] collection</a> +[% IF unit.request_open %] + <span class="waste-service-descriptor"> + A new [% unit.service_name FILTER lower %] container request has been made + [% IF unit.request_open.report %] – <a href="[% unit.request_open.report.url %]" class="waste-service-link">check status</a>[% END %] + </span> +[% ELSIF unit.request_allowed %] + [% any_request_allowed = 1 %] + <form method="post" action="[% c.uri_for_action('waste/request', [ property.id ]) %]"> + <input type="hidden" name="token" value="[% csrf_token %]"> + <input type="hidden" name="container-[% unit.request_containers.0 %]" value="1"> + <input type="submit" value="Request a new [% unit.service_name FILTER lower %] container" class="waste-service-descriptor waste-service-link"> + </form> +[% END %] + <form method="get" action="[% c.uri_for_action('waste/enquiry', [ property.id ]) %]"> + <input type="hidden" name="service_id" value="[% unit.service_id %]"> + <input type="hidden" name="category" id="category" value="General Enquiry"> + <input type="submit" value="Contact us about a [% unit.service_name FILTER lower %] collection" class="waste-service-descriptor waste-service-link"> + </form> diff --git a/templates/web/bromley/waste/services_extra.html b/templates/web/bromley/waste/services_extra.html new file mode 100644 index 000000000..d635c843f --- /dev/null +++ b/templates/web/bromley/waste/services_extra.html @@ -0,0 +1,15 @@ +[% IF domestic_collection %] +<h3 class="govuk-heading-m waste-service-name">Batteries, small electrical items and textiles</h3> +<div class="govuk-grid-row"> + <div class="govuk-grid-column-one-quarter text-centered"> + <img src="/cobrands/bromley/images/container-images/electricals-batteries-textiles.png" + srcset="/cobrands/bromley/images/container-images/electricals-batteries-textiles.png 1x, /cobrands/bromley/images/container-images/electricals-batteries-textiles@2x.png 2x" + alt="" class="waste-service-image"> + </div> + <div class="govuk-grid-column-three-quarters"> + <p>Please only present one small bag each week as we cannot handle high + volumes. If we do not collect your items, please bring them back inside and + present them for collection next week.</p> + </div> +</div> +[% END %] |