aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/waste/bin_days.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/waste/bin_days.html')
-rw-r--r--templates/web/base/waste/bin_days.html105
1 files changed, 105 insertions, 0 deletions
diff --git a/templates/web/base/waste/bin_days.html b/templates/web/base/waste/bin_days.html
new file mode 100644
index 000000000..54c21ae0c
--- /dev/null
+++ b/templates/web/base/waste/bin_days.html
@@ -0,0 +1,105 @@
+[% SET bodyclass = 'waste' %]
+[% USE date(format = '%A, %-d~~~ %B') %]
+
+[% INCLUDE header.html %]
+
+<h1 class="govuk-heading-xl">Your bin days</h1>
+
+<dl class="waste__address">
+ <dt class="waste__address__title">Address</dt>
+ <dd class="waste__address__property">[% property.address %]</dd>
+</dl>
+<div class="waste__collections">
+ <h2 class="govuk-heading-l govuk-!-margin-bottom-2">Your collections</h2>
+ <div class="govuk-grid-row">
+ <div class="govuk-grid-column-two-thirds">
+
+[% SET any_report_allowed = 0 ~%]
+[% SET any_request_allowed = 0 ~%]
+[% FOR unit IN service_data %]
+
+<h3 class="govuk-heading-m waste-service-name">[% unit.service_name %]</h3>
+<div class="govuk-grid-row">
+ [% SET image = c.cobrand.image_for_service(unit.service_id) ~%]
+ [% IF image %]
+ <div class="govuk-grid-column-one-quarter text-centered">
+ <img src="[% image %].png" srcset="[% image %].png 1x, [% image %]@2x.png 2x" alt="" class="waste-service-image">
+ </div>
+ <div class="govuk-grid-column-three-quarters">
+ [% ELSE %]
+ <div class="govuk-grid-column-full">
+ [% END %]
+ <dl class="govuk-summary-list">
+ <div class="govuk-summary-list__row">
+ <dt class="govuk-summary-list__key">Frequency</dt>
+ <dd class="govuk-summary-list__value">[% unit.schedule %]</dd>
+ </div>
+ <div class="govuk-summary-list__row">
+ <dt class="govuk-summary-list__key">Next collection</dt>
+ <dd class="govuk-summary-list__value">
+ [% IF unit.next %]
+ [% date.format(unit.next.date) | replace('~~~', unit.next.ordinal) %]
+ [% IF unit.next.changed %](this collection has been adjusted from its usual time)[% END %]
+ [% IF unit.next.state == 'In progress' %](in progress)[% END %]
+ [% ELSE %]
+ <i>None</i>
+ [% END %]
+ </dd>
+ </div>
+ [% IF unit.last %]
+ <div class="govuk-summary-list__row">
+ <dt class="govuk-summary-list__key">Last collection</dt>
+ <dd class="govuk-summary-list__value">
+ [% date.format(unit.last.date) | replace('~~~', unit.last.ordinal) %]
+ [% IF unit.last.changed %](this collection has been adjusted from its usual time)[% END %]
+ [% IF unit.last.state == 'In progress' %](in progress)[% END %]
+ [% IF unit.last.completed %](completed at [% date.format(unit.last.completed, '%l:%M%p') | lower ~%])[% END ~%]
+ [% IF unit.last.resolution %][% unit.last.resolution | staff_html_markup({ is_body_user => 1 }) %][% END ~%]
+ </dd>
+ </div>
+ [% END %]
+ </dl>
+
+ <div class="waste-services-launch-panel" id="panel-[% unit.service_id %]">
+ [% PROCESS waste/services.html %]
+ </div>
+ </div>
+</div>
+[% END %]
+[% IF NOT service_data.size %]
+ <p>This property has no collections.</p>
+[% END %]
+
+ [% TRY %][% PROCESS waste/services_extra.html %][% CATCH file %][% END %]
+
+ </div>
+
+ [% IF service_data.size %]
+ <div class="govuk-grid-column-one-third">
+ <div class="aside">
+ <div class="aside-download">
+ <h3>Download your collection schedule</h3>
+ <ul>
+ <li><a href="[% c.uri_for_action('waste/calendar', [ property.id ]) %]">Add to your calendar (.ics file)</a></li>
+ </ul>
+ </div>
+ [% IF any_report_allowed OR any_request_allowed %]
+ <div class="aside-services">
+ <h3>More services</h3>
+ <ul>
+ [% IF any_report_allowed %]
+ <li><a href="[% c.uri_for_action('waste/report', [ property.id ]) %]">Report a missed collection</a></li>
+ [% END %]
+ [% IF any_request_allowed %]
+ <li><a href="[% c.uri_for_action('waste/request', [ property.id ]) %]">Request a new container</a></li>
+ [% END %]
+ </ul>
+ </div>
+ [% END %]
+ </div>
+ </div>
+ [% END %]
+ </div>
+</div>
+[% INCLUDE footer.html %]
+