feat: category and phone number for contacts
This commit is contained in:
1 parent
f596290960
commit
d9a205cfd1
4 files changed
+82
No files matched your search
@@ -5,6 +5,7 @@ namespace App\Form;
|
||||
use App\Entity\Contact;
|
||||
use App\Model\UploadSessionDto;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
@@ -21,6 +22,17 @@ class ContactType extends AbstractType
|
||||
->add('email', EmailType::class, [
|
||||
'label' => 'E-Mail',
|
||||
])
|
||||
->add('phone', TextType::class, [
|
||||
'label' => 'Telefon',
|
||||
])
|
||||
->add('category', ChoiceType::class, [
|
||||
'label' => 'Kategorie',
|
||||
'choices' => [
|
||||
'Reisemanagement' => Contact::CATEGORY_MANAGEMENT,
|
||||
'Hausmanagement' => Contact::CATEGORY_HOUSE_MANAGEMENT,
|
||||
'Personalplanung' => Contact::CATEGORY_HR,
|
||||
],
|
||||
])
|
||||
->add('destination', TextType::class, [
|
||||
'label' => 'Destination',
|
||||
'required' => false,
|
||||
|
||||
Reference in new issue
Block a user