Add validations for changing votation type

This commit is contained in:
taitus
2025-08-06 12:13:13 +02:00
parent 9ff167d040
commit b4b00487cc
5 changed files with 66 additions and 25 deletions

View File

@@ -629,6 +629,10 @@ en:
attributes:
code:
invalid: "must start with the same code as its target followed by a dot and end with a number"
votation_type:
attributes:
vote_type:
cannot_change_to_open_ended: "can't change to open-ended type because you've already defined possible valid answers for this question"
messages:
translations_too_short: Is mandatory to provide one translation at least
record_invalid: "Validation failed: %{errors}"

View File

@@ -629,6 +629,10 @@ es:
attributes:
code:
invalid: "debe empezar con el código de su meta seguido de un punto y terminar con un número"
votation_type:
attributes:
vote_type:
cannot_change_to_open_ended: "no se puede cambiar a respuesta abierta el tipo de votación porque ya has definido posibles respuestas válidas para esta pregunta"
messages:
translations_too_short: El obligatorio proporcionar una traducción como mínimo
record_invalid: "Error de validación: %{errors}"