mergeIntervention
This commit is contained in:
parent
8aa0003e64
commit
e6ac8298f8
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
use DateTime;
|
use App\Entity\Intervention;
|
||||||
|
use Doctrine\DBAL\Types\TextType;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
|
||||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
@ -17,18 +14,19 @@ class InterventionType extends AbstractType
|
|||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('Wording', TextType::class)
|
->add('Wording', TextType::class)
|
||||||
->add('Timestamp', DateType::class)
|
->add('Timestamp', \DateTime::class, [
|
||||||
->add('description', TextAreaType::class)
|
'widget' => 'single_text',
|
||||||
->add('address', TextType::class)
|
])
|
||||||
|
->add('Description', TextType::class)
|
||||||
|
->add('Address', TextType::class)
|
||||||
->add('Status', TextType::class)
|
->add('Status', TextType::class)
|
||||||
->add('save', SubmitType::class)
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configureOptions(OptionsResolver $resolver): void
|
public function configureOptions(OptionsResolver $resolver): void
|
||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
// Configure your form options here
|
'data_class' => Intervention::class,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user