Show errors when submitting too many answers

This could be the case when JavaScript is disabled.

Note that, in `Poll/WebVote` we're calling `given_answers` inside a
transaction. Putting this code before the transaction resulted in a test
failing sometimes, probably because of a bug that might be possible to
reproduce by doing simultaneous requests.
This commit is contained in:
Javi Martín
2025-06-25 15:57:45 +02:00
parent abf02808bf
commit 8deb1964bd
10 changed files with 126 additions and 42 deletions

View File

@@ -579,6 +579,7 @@ en:
final_date: "Final recounts/Results"
form:
vote: "Vote"
maximum_exceeded: "you've selected %{given} answers, but the maximum you can select is %{maximum}"
index:
filters:
current: "Open"

View File

@@ -579,6 +579,7 @@ es:
final_date: "Recuento final/Resultados"
form:
vote: "Votar"
maximum_exceeded: "has seleccionado %{given} respuestas, pero el máximo que puedes seleccionar es %{maximum}"
index:
filters:
current: "Abiertas"