Slide 116
Slide 116 text
add('appointmentTime'
, DateTimeType
::class, [
'input' => 'datetime_immutable'
,
'widget' => 'single_text'
,
'attr' => [
'step' => 900,
'min' => (new \DateTimeImmutable
())->format('Y-m-d')
]
])
->add('petName', TextType::class)
->add('ownerName'
, TextType::class)
->add('contactNumber'
, TextType::class)
->add('appointmentLength'
, ChoiceType
::class, [
'choices' => [
'single' => false,
'double' => true
]
])
->add('submit', SubmitType
::class);
}
}
public
src
AcmeVet
config
App
composer.json
Kernel.php
AppointmentController.php
migrations
Controller
Entity
Form
Repository
Type
templates
tests