Validate date ranges for legislation process

Only validates start and end dates for the whole process or a phase, not overlap between phases, as they are permitted, at least for now.
This commit is contained in:
Amaia Castro
2017-01-04 18:13:28 +01:00
parent b6b33ff85b
commit bc1905e5d9
4 changed files with 61 additions and 0 deletions

View File

@@ -127,6 +127,14 @@ en:
attributes:
max_per_day:
invalid: "You have reached the maximum number of private messages per day"
legislation/process:
attributes:
end_date:
invalid_date_range: must be on or after the start date
debate_end_date:
invalid_date_range: must be on or after the debate start date
allegations_end_date:
invalid_date_range: must be on or after the allegations start date
proposal:
attributes:
tag_list:

View File

@@ -127,6 +127,14 @@ es:
attributes:
max_per_day:
invalid: "Has llegado al número máximo de mensajes privados por día"
legislation/process:
attributes:
end_date:
invalid_date_range: tiene que ser igual o posterior a la fecha de inicio
debate_end_date:
invalid_date_range: tiene que ser igual o posterior a la fecha de inicio del debate
allegations_end_date:
invalid_date_range: tiene que ser igual o posterior a la fecha de inicio de las alegaciones
proposal:
attributes:
tag_list: