Compare commits

..

No commits in common. "cbae74f041e5074a08c1dcef3b06e3dc01088406" and "ecbaed5c85b0eefbe055a213b0bf95552eb70a64" have entirely different histories.

1 changed files with 3 additions and 2 deletions

View File

@ -118,13 +118,14 @@ class AlertType extends AbstractType
->add('publishedat', DateType::class, [ ->add('publishedat', DateType::class, [
'label' => 'Publier du', 'label' => 'Publier du',
"widget" => 'single_text', 'input' => 'datetime',
]) ])
->add('unpublishedat', DateType::class, [ ->add('unpublishedat', DateType::class, [
'label' => 'Jusqu\'au', 'label' => 'Jusqu\'au',
'input' => 'datetime',
'required' => false, 'required' => false,
"widget" => 'single_text', 'years' => range(date('Y'), date('Y')+10)
]); ]);