diff options
Diffstat (limited to 'templates/web')
-rw-r--r-- | templates/web/base/waste/enquiry.html | 33 | ||||
-rw-r--r-- | templates/web/base/waste/summary_enquiry.html | 19 | ||||
-rw-r--r-- | templates/web/bromley/waste/enquiry-problem.html | 13 | ||||
-rw-r--r-- | templates/web/bromley/waste/services.html | 6 |
4 files changed, 71 insertions, 0 deletions
diff --git a/templates/web/base/waste/enquiry.html b/templates/web/base/waste/enquiry.html new file mode 100644 index 000000000..8993b0fd8 --- /dev/null +++ b/templates/web/base/waste/enquiry.html @@ -0,0 +1,33 @@ +[% SET bodyclass = 'waste' %] +[% INCLUDE header.html %] + +[% PROCESS 'waste/govuk/fields.html' %] +[% PROCESS title %] +[% SET service_id = c.req.params.service_id %] + +<dl class="waste__address"> + <dt class="waste__address__title">Address</dt> + <dd class="waste__address__property">[% property.address %]</dd> +</dl> + +<dl class="waste__address"> + <dt class="waste__address__title">Service</dt> + <dd class="waste__address__property">[% services.$service_id.service_name %]</dd> +</dl> + +<form method="get" action="[% c.uri_for_action('waste/enquiry', [ uprn ]) %]"> + <div class="govuk-form-group"> + [% PROCESS radio field = { + id = 'category', + html_name = 'category', + label = 'Category', + options = field_options + } + %] + </div> + <div class="govuk-form-group"><input type="submit" value="Continue" class="govuk-button"></div> + + <input type="hidden" name="service_id" value="[% service_id %]"> +</form> + +[% INCLUDE footer.html %] diff --git a/templates/web/base/waste/summary_enquiry.html b/templates/web/base/waste/summary_enquiry.html new file mode 100644 index 000000000..8e5967a3b --- /dev/null +++ b/templates/web/base/waste/summary_enquiry.html @@ -0,0 +1,19 @@ +[% +title = 'Submit enquiry'; +thing = 'enquiry'; +summary_title = data.category; +step1 = 'enquiry'; +%] + +[% BLOCK answers %] + [% FOR extra IN data.keys.grep('^extra_') %] + [% NEXT UNLESS data.$extra %] + [% SET extra_name = extra.replace('extra_', '') %] + <div class="govuk-summary-list__row"> + <dt class="govuk-summary-list__key govuk-summary-list__key--sub">[% extra_name | title %]</dt> + <dd class="govuk-summary-list__value">[% data.$extra %]</dd> + </div> + [% END %] +[% END %] + +[% PROCESS waste/summary.html %] diff --git a/templates/web/bromley/waste/enquiry-problem.html b/templates/web/bromley/waste/enquiry-problem.html new file mode 100644 index 000000000..948cb91f3 --- /dev/null +++ b/templates/web/bromley/waste/enquiry-problem.html @@ -0,0 +1,13 @@ +[% 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' }, + ] +%] diff --git a/templates/web/bromley/waste/services.html b/templates/web/bromley/waste/services.html index 2f683ab2f..2caf41738 100644 --- a/templates/web/bromley/waste/services.html +++ b/templates/web/bromley/waste/services.html @@ -4,6 +4,7 @@ <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> + <a href="[% c.uri_for_action('waste/enquiry', [ uprn ]) %]?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_allowed %] [% any_request_allowed = 1 %] <form method="post" action="[% c.uri_for_action('waste/request', [ uprn ]) %]"> @@ -12,3 +13,8 @@ <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', [ uprn ]) %]"> + <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> |