Feat: Add description field to availability
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Form;
|
||||
|
||||
use App\Entity\Availability;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
@@ -20,6 +21,10 @@ class AvailabilityType extends AbstractType
|
||||
'label' => 'Datum bis',
|
||||
'min_date' => new \DateTimeImmutable(),
|
||||
])
|
||||
->add('description', TextType::class, [
|
||||
'label' => 'Anmerkung',
|
||||
'required' => false,
|
||||
])
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user