diff --git a/ynr/apps/elections/templates/elections/ballot_view.html b/ynr/apps/elections/templates/elections/ballot_view.html index 5cfeb1fdd..0f6035fdc 100644 --- a/ynr/apps/elections/templates/elections/ballot_view.html +++ b/ynr/apps/elections/templates/elections/ballot_view.html @@ -31,10 +31,10 @@ {% block body_class %}constituency{% endblock %} -{% block title %}Candidates for {{ ballot.post.label }} in the {{ ballot.election.name }}{% endblock %} +{% block title %}Candidates for {{ ballot.post.label }} in the {{ ballot.election.name }} on {{ ballot.election.election_date|date:"j F Y" }}{% endblock %} {% block hero %} -

Candidates for {{ ballot.post.label }}

+

Candidates for {{ ballot.post.label }} on
{{ ballot.election.election_date|date:"j F Y" }}

{% endblock %} diff --git a/ynr/apps/elections/templates/elections/election_detail.html b/ynr/apps/elections/templates/elections/election_detail.html index e6c209046..e80baf7c7 100644 --- a/ynr/apps/elections/templates/elections/election_detail.html +++ b/ynr/apps/elections/templates/elections/election_detail.html @@ -2,9 +2,9 @@ {% block title %} {% if ballot.candidates_locked %} - Candidates for each ballot in the {{ object.name }} + Candidates for each ballot in the {{ object.name }} on {{ object.election_date|date:"j F Y" }} {% else %} - Known candidates for each ballot in the {{ object.name }} + Known candidates for each ballot in the {{ object.name }} on {{ object.election_date|date:"j F Y" }} {% endif %} {% endblock %} @@ -33,7 +33,7 @@

{{ object.name }}

{% for ballot in ballots %}

- {{ ballot.post.label }} + {{ ballot.post.label }} on {{ object.election_date|date:"j F Y" }} {{ ballot.cancelled_status_html }} {{ ballot.locked_status_html }}

diff --git a/ynr/apps/elections/templates/elections/party_for_ballot.html b/ynr/apps/elections/templates/elections/party_for_ballot.html index 9d3292f06..053556124 100644 --- a/ynr/apps/elections/templates/elections/party_for_ballot.html +++ b/ynr/apps/elections/templates/elections/party_for_ballot.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block body_class %}constituency{% endblock %} -{% block title %}Candidates for {{ object.post.label }} in the {{ object.election.name }}{% endblock %} +{% block title %}Candidates for {{ object.post.label }} in the {{ object.election.name }} on {{ ballot.election.election_date|date:"j F Y" }}{% endblock %} {% block hero %}

diff --git a/ynr/apps/elections/tests/test_ballot_view.py b/ynr/apps/elections/tests/test_ballot_view.py index 002b9b00a..12af16984 100644 --- a/ynr/apps/elections/tests/test_ballot_view.py +++ b/ynr/apps/elections/tests/test_ballot_view.py @@ -130,7 +130,9 @@ def test_ballot_with_candidates_no_sopn(self): self.assertEqual(response.context["candidates"].count(), 9) self.assertDataTimelineCandidateAddingInProgress(response) - self.assertInHTML("

Candidates for Bar Ward

", response.text) + self.assertInHTML( + "

Candidates for Bar Ward on
7 Sept 2023

", response.text + ) self.assertInHTML( """