Merge pull request #53 from medialab-prado/46-validate-legislation-process-dates

Validate date ranges for legislation process
This commit is contained in:
Fernando Blat
2017-01-05 09:25:10 +01:00
committed by GitHub
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: