This commit is contained in:
2024-11-16 09:32:15 +01:00
parent 02906d09e2
commit e26fdb13f1
4 changed files with 18 additions and 3 deletions

View File

@ -7,6 +7,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
@ -41,7 +42,16 @@ class IllustrationType extends AbstractType
],
]
);
$builder->add('submittime',
DateTimeType::class, [
"label" =>"Date de Publication",
"date_widget" => "single_text",
"time_widget" => "single_text",
]
);
if($options["by"]=="admin") {
$builder->add('category',
EntityType::class, [