Skip to content

Commit

Permalink
Add May 4th election day messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed May 2, 2023
1 parent 17428ee commit d64cf57
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ i18n_extract:
.PHONY: i18n_compile
i18n_compile:
pybabel compile -f -d postcode_lookup/locale/

.PHONY: failover
failover:
python failover/build.py
12 changes: 10 additions & 2 deletions failover/failover.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<!-- DC failover page -->
<!-- end testing comment -->
<h1>Try again later</h1>
<p>Something has gone wrong. We have been notified of the issue and are working on fixing it.</p>
<p>Please try back later</p>
<p>Sorry, there's a problem with this service at the moment. We're working to fix it as soon as possible.</p>

<p>Elections are taking place in England on 4 May 2023.
If there's an election in your area, you should have received a poll card.
This will tell you where your polling station is.</p>

<p>Polling stations are open from 7am to 10pm on polling day.</p>

<p>If you're voting at the polling station, you'll need to take photo ID with you.
<a href="https://www.electoralcommission.org.uk/i-am-a/voter/voter-id/accepted-forms-photo-id">Find out more about this new requirement</a>.</p>
{% endblock %}
8 changes: 8 additions & 0 deletions postcode_lookup/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ <h2 id="paragraph-14945-title" class="slice__title">
</div>
</div>
</section>

<div class="c-polling-station-slice" style="margin-top:1em">
<p>Elections are taking place in England on 4 May 2023, and polling stations will be
open from 7am to 10pm.</p>
<p>If you're voting at the polling station, you'll need to take photo ID with you.</p>
<p><a href="https://www.electoralcommission.org.uk/i-am-a/voter/voter-id/accepted-forms-photo-id" class="o-button o-button--primary o-button--dark">
Check the list of accepted forms of photo ID</a></p>
</div>
</div>

</div>
Expand Down
4 changes: 4 additions & 0 deletions postcode_lookup/templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
</style>

<div class="dc-container">
<p class="c-polling-station-slice">
You’ll need to take photo ID with you if you’re voting at the polling station.
<a href="https://www.electoralcommission.org.uk/i-am-a/voter/voter-id/accepted-forms-photo-id">Check the list of accepted forms of photo ID</a>.
</p>
{% for date in api_response.dates %}
<h2 class="o-type-h2">{{ date.date|date_filter }}</h2>
<div class="dc-grid">
Expand Down

0 comments on commit d64cf57

Please sign in to comment.