Skip to content

Commit

Permalink
Only show voter ID message when the postcode has an election
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed May 2, 2023
1 parent d64cf57 commit 2026c8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postcode_lookup/templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,13 @@
</style>

<div class="dc-container">
{% if api_response.dates %}
<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>
{% endif %}

{% 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 2026c8c

Please sign in to comment.