diff --git a/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.test.tsx b/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.test.tsx
index 5e4678123..33d00268a 100644
--- a/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.test.tsx
+++ b/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.test.tsx
@@ -281,6 +281,40 @@ describe("Test PollingStationChoiceForm", () => {
expect(screen.getByText("Geen stembureaus gevonden")).toBeVisible();
});
+ test("All data entries of polling stations are finished, polling station list shows message", async () => {
+ overrideOnce("get", "/api/elections/1", 200, electionDetailsMockResponse);
+ overrideOnce("get", "/api/elections/1/status", 200, {
+ statuses: [
+ {
+ polling_station_id: 1,
+ status: "definitive",
+ },
+ {
+ polling_station_id: 2,
+ status: "definitive",
+ },
+ {
+ polling_station_id: 3,
+ status: "definitive",
+ },
+ {
+ polling_station_id: 4,
+ status: "entries_different",
+ },
+ ],
+ } satisfies ElectionStatusResponse);
+
+ const user = userEvent.setup();
+ renderPollingStationChoicePage();
+
+ const openPollingStationList = await screen.findByTestId("openPollingStationList");
+ await user.click(openPollingStationList);
+ expect(screen.getByText("Kies het stembureau")).toBeVisible();
+
+ // Check if the error message is visible
+ expect(screen.getByText("Alle stembureaus zijn twee keer ingevoerd")).toBeVisible();
+ });
+
test("Second data entry has correct link", async () => {
overrideOnce("get", "/api/elections/1", 200, electionDetailsMockResponse);
overrideOnce("get", "/api/elections/1/status", 200, {
diff --git a/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.tsx b/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.tsx
index 9508c43b8..07532364b 100644
--- a/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.tsx
+++ b/frontend/app/component/form/data_entry/polling_station_choice/PollingStationChoiceForm.tsx
@@ -150,10 +150,14 @@ export function PollingStationChoiceForm({ anotherEntry }: PollingStationChoiceF
{t("polling_station_choice.choose_polling_station")}
- {!pollingStationsForDataEntry.length ? (
+ {!pollingStations.length ? (
{t("polling_station_choice.no_polling_stations_found")}
+ ) : !pollingStationsForDataEntry.length ? (
+
+ {t("polling_station_choice.all_polling_stations_filled_in_twice")}
+
) : (
)}
diff --git a/frontend/lib/i18n/locales/nl/polling_station_choice.json b/frontend/lib/i18n/locales/nl/polling_station_choice.json
index 5a495238c..26f80ba95 100644
--- a/frontend/lib/i18n/locales/nl/polling_station_choice.json
+++ b/frontend/lib/i18n/locales/nl/polling_station_choice.json
@@ -1,17 +1,18 @@
{
+ "all_polling_stations_filled_in_twice": "Alle stembureaus zijn twee keer ingevoerd",
+ "choose_polling_station": "Kies het stembureau",
"enter_a_valid_number_to_start": "Voer een geldig nummer van een stembureau in om te beginnen",
- "polling_station_entry_not_possible": "Het stembureau dat je geselecteerd hebt kan niet meer ingevoerd worden",
"has_already_been_filled_twice": "Stembureau {nr} ({name}) is al twee keer ingevoerd",
- "unfinished_input_title": "Je hebt nog een openstaande invoer",
- "unfinished_input_content": "Je bent begonnen met het invoeren van onderstaande stembureaus, maar hebt deze nog niet helemaal afgerond:",
- "insert_title": "Welk stembureau ga je invoeren?",
"insert_another": "Verder met een volgend stembureau?",
+ "insert_number": "Voer het nummer in:",
+ "insert_title": "Welk stembureau ga je invoeren?",
"name_correct_warning": "Klopt de naam van het stembureau met de naam op je papieren proces-verbaal?\nDan kan je beginnen. Klopt de naam niet? Overleg met de coördinator.",
- "unknown_number": "Weet je het nummer niet?",
- "view_list": "Bekijk de lijst met alle stembureaus",
- "choose_polling_station": "Kies het stembureau",
+ "no_polling_station_found_with_number": "Geen stembureau gevonden met nummer {nr}",
"no_polling_stations_found": "Geen stembureaus gevonden",
- "insert_number": "Voer het nummer in:",
+ "polling_station_entry_not_possible": "Het stembureau dat je geselecteerd hebt kan niet meer ingevoerd worden",
"searching": "aan het zoeken",
- "no_polling_station_found_with_number": "Geen stembureau gevonden met nummer {nr}"
+ "unfinished_input_title": "Je hebt nog een openstaande invoer",
+ "unfinished_input_content": "Je bent begonnen met het invoeren van onderstaande stembureaus, maar hebt deze nog niet helemaal afgerond:",
+ "unknown_number": "Weet je het nummer niet?",
+ "view_list": "Bekijk de lijst met alle stembureaus"
}