src/Form/WorkWithUsType.php line 19
<?phpnamespace App\Form;use Symfony\Component\Form\AbstractType;use Symfony\Component\Form\Extension\Core\Type\CheckboxType;use Symfony\Component\Form\Extension\Core\Type\ChoiceType;use Symfony\Component\Form\Extension\Core\Type\DateType;use Symfony\Component\Form\Extension\Core\Type\EmailType;use Symfony\Component\Form\Extension\Core\Type\FileType;use Symfony\Component\Form\Extension\Core\Type\TelType;use Symfony\Component\Form\Extension\Core\Type\TextareaType;use Symfony\Component\Form\Extension\Core\Type\TextType;use Symfony\Component\Form\FormBuilderInterface;use Symfony\Component\OptionsResolver\OptionsResolver;use Symfony\Component\Validator\Constraints\File;use Symfony\Contracts\Translation\TranslatorInterface;class WorkWithUsType extends AbstractType{private $transalor;public function __construct(TranslatorInterface $translator){$this->transalor = $translator;}public function buildForm(FormBuilderInterface $builder, array $options): void{$builder->add('name', TextType::class)->add('surname', TextType::class)->add('email', EmailType::class)->add('nationality', ChoiceType::class,['required' => true,'placeholder' => $this->transalor->trans('form.choices.work_with_us.placeholder_nation') . '*','choices' => [// 'Seleziona la tua Nazione*' => null,'Afghanistan' => 'Afghanistan','Albania' => 'Albania','Algeria' => 'Algeria','Andorra' => 'Andorra','Angola' => 'Angola','Argentina' => 'Argentina','Armenia' => 'Armenia','Australia' => 'Australia','Austria' => 'Austria','Azerbaijan' => 'Azerbaijan','Bahamas' => 'Bahamas','Bahrain' => 'Bahrain','Bangladesh' => 'Bangladesh','Barbados' => 'Barbados','Belarus' => 'Belarus','Belgium' => 'Belgium','Belize' => 'Belize','Benin (Dahomey)' => 'Benin (Dahomey)','Bolivia' => 'Bolivia','Bosnia and Herzegovina' => 'Bosnia and Herzegovina','Botswana' => 'Botswana','Brazil' => 'Brazil','Brunei' => 'Brunei','Brunswick and Lüneburg' => 'Brunswick and Lüneburg','Bulgaria' => 'Bulgaria','Burkina Faso' => 'Burkina Faso','Burma' => 'Burma','Cabo Verde' => 'Cabo Verde','Cambodia' => 'Cambodia','Cameroon' => 'Cameroon','Canada' => 'Canada','Cayman Islands' => 'Cayman Islands','Central African Republic' => 'Central African Republic','Central American Federation' => 'Central American Federation','Chad' => 'Chad','Chile' => 'Chile','China' => 'China','Colombia' => 'Colombia','Comoros' => 'Comoros','Congo Free State' => 'Congo Free State','Costa Ric' => 'Costa Ric','Cote d’Ivoire (Ivory Coast)' => 'Cote d’Ivoire (Ivory Coast)','Croatia' => 'Croatia','Cuba' => 'Cuba','Cyprus' => 'Cyprus','Czechia' => 'Czechia','Czechoslovakia' => 'Czechoslovakia','Democratic Republic of the Congo' => 'Democratic Republic of the Congo','Denmark' => 'Denmark','Djibouti' => 'Djibouti','Dominica' => 'Dominica','Dominican Republic' => 'Dominican Republic','Ecuador' => 'Ecuador','Egyp' => 'Egyp','El Salvador' => 'El Salvador','Equatorial Guinea' => 'Equatorial Guinea','Eritrea' => 'Eritrea','Estonia' => 'Estonia','Eswatini' => 'Eswatini','Ethiopia' => 'Ethiopia','Fiji' => 'Fiji','Finland' => 'Finland','France' => 'France','Gabon' => 'Gabon','Gambia' => 'Gambia','Georgia' => 'Georgia','Germany' => 'Germany','Ghana' => 'Ghana','Greece' => 'Greece','Grenada' => 'Grenada','Guatemala' => 'Guatemala','Guine' => 'Guine','Guyan' => 'Guyan','Hai' => 'Hai','Hanover' => 'Hanover','Hanseatic Republics' => 'Hanseatic Republics','Hawai' => 'Hawai','Hes' => 'Hes','Holy See' => 'Holy See','Honduras' => 'Honduras','Hungary' => 'Hungary','Iceland' => 'Iceland','Ind' => 'Ind','Indonesia' => 'Indonesia','Iran' => 'Iran','Iraq' => 'Iraq','Ireland' => 'Ireland','Israel' => 'Israel','Italy' => 'Italy','Jamaica' => 'Jamaica','Japan' => 'Japan','Jordan' => 'Jordan','Kazakhstan' => 'Kazakhstan','Kenya' => 'Kenya','Kiribati' => 'Kiribati','Korea' => 'Korea','Kosov' => 'Kosov','Kuwai' => 'Kuwai','Kyrgyzstan' => 'Kyrgyzstan','Laos' => 'Laos','Latvi' => 'Latvi','Lebanon' => 'Lebanon','Lesotho' => 'Lesotho','Lew Chew (Loochoo)' => 'Lew Chew (Loochoo)','Liberia' => 'Liberia','Libya' => 'Libya','Liechtenstein' => 'Liechtenstein','Lithuania' => 'Lithuania','Luxembourg' => 'Luxembourg','Madagascar' => 'Madagascar','Malawi' => 'Malawi','Malaysia' => 'Malaysia','Maldives' => 'Maldives','Mali' => 'Mali','Malta' => 'Malta','Marshall Islands' => 'Marshall Islands','Mauritania' => 'Mauritania','Mauritius' => 'Mauritius','Mecklenburg-Schwerin' => 'Mecklenburg-Schwerin','Mecklenburg-Strelitz' => 'Mecklenburg-Strelitz','Mexico' => 'Mexico','Micronesia' => 'Micronesia','Moldova' => 'Moldova','Monaco' => 'Monaco','Mongolia' => 'Mongolia','Montenegro' => 'Montenegro','Morocco' => 'Morocco','Mozambique' => 'Mozambique','Namibia' => 'Namibia','Nassau' => 'Nassau','Nauru' => 'Nauru','Nepal' => 'Nepal','Netherlands, The' => 'Netherlands, The','New Zealand' => 'New Zealand','Nicaragua' => 'Nicaragua','Niger' => 'Niger','Nigeria' => 'Nigeria','North German Confederation' => 'North German Confederation','North German Union' => 'North German Union','North Macedonia' => 'North Macedonia','Norway' => 'Norway','Oldenburg' => 'Oldenburg','Oman' => 'Oman','Orange Free State' => 'Orange Free State','Pakistan' => 'Pakistan','Palau' => 'Palau','Panama' => 'Panama','Papal States' => 'Papal States','Papua New Guinea' => 'Papua New Guinea','Paraguay' => 'Paraguay','Peru' => 'Peru','Philippines' => 'Philippines','Piedmont-Sardinia' => 'Piedmont-Sardinia','Poland' => 'Poland','Portugal' => 'Portugal','Qatar' => 'Qatar','Republic of Genoa' => 'Republic of Genoa','Republic of Korea (South Korea)' => 'Republic of Korea (South Korea)','Republic of the Congo' => 'Republic of the Congo','Romania' => 'Romania','Russia' => 'Russia','Rwanda' => 'Rwanda','Saint Kitts and Nevis' => 'Saint Kitts and Nevis','Saint Lucia' => 'Saint Lucia','Saint Vincent and the Grenadines' => 'Saint Vincent and the Grenadines','Samoa' => 'Samoa','San Marino' => 'San Marino','Sao Tome and Principe' => 'Sao Tome and Principe','Saudi Arabia' => 'Saudi Arabia','Schaumburg-Lippe' => 'Schaumburg-Lippe','Senegal' => 'Senegal','Serbia' => 'Serbia','Seychelles' => 'Seychelles','Sierra Leone' => 'Sierra Leone','Singapore' => 'Singapore','Slovakia' => 'Slovakia','Slovenia' => 'Slovenia','Solomon Islands' => 'Solomon Islands','Somalia' => 'Somalia','South Africa' => 'South Africa','South Sudan' => 'South Sudan','Spain' => 'Spain','Sri Lanka' => 'Sri Lanka','Sudan' => 'Sudan','Suriname' => 'Suriname','Sweden' => 'Sweden','Switzerland' => 'Switzerland','Syria' => 'Syria','Tajikistan' => 'Tajikistan','Tanzania' => 'Tanzania','Texas' => 'Texas','Thailand' => 'Thailand','Timor-Leste' => 'Timor-Leste','Togo' => 'Togo','Tonga' => 'Tonga','Trinidad and Tobago' => 'Trinidad and Tobago','Tunisia' => 'Tunisia','Turkey' => 'Turkey','Turkmenistan' => 'Turkmenistan','Tuvalu' => 'Tuvalu','Two Sicilies' => 'Two Sicilies','Uganda' => 'Uganda','Ukraine' => 'Ukraine','Union of Soviet Socialist Republics' => 'Union of Soviet Socialist Republics','United Arab Emirates, The' => 'United Arab Emirates, The','United Kingdom, The' => 'United Kingdom, The','Uruguay' => 'Uruguay','Uzbekistan' => 'Uzbekistan','Vanuatu' => 'Vanuatu','Venezuela' => 'Venezuela','Vietnam' => 'Vietnam','Württemberg' => 'Württemberg','Yemen' => 'Yemen','Zambia' => 'Zambia','Zimbabwe' => 'Zimbabwe',]])->add('workingPosition', ChoiceType::class, ['required' => true,'placeholder' => $this->transalor->trans('form.choices.work_with_us.placeholder_works') . '*','choices' => [$this->transalor->trans('form.choices.work_with_us.food_packaging_operator') => $this->transalor->trans('form.choices.work_with_us.food_packaging_operator'),$this->transalor->trans('form.choices.work_with_us.warehouse_keeper') => $this->transalor->trans('form.choices.work_with_us.warehouse_keeper'),$this->transalor->trans('form.choices.work_with_us.maintenance_technician') => $this->transalor->trans('form.choices.work_with_us.maintenance_technician'),$this->transalor->trans('form.choices.work_with_us.purchasing') => $this->transalor->trans('form.choices.work_with_us.purchasing'),$this->transalor->trans('form.choices.work_with_us.administration_finance') => $this->transalor->trans('form.choices.work_with_us.administration_finance'),$this->transalor->trans('form.choices.work_with_us.commercial') => $this->transalor->trans('form.choices.work_with_us.commercial'),$this->transalor->trans('form.choices.work_with_us.engineering') => $this->transalor->trans('form.choices.work_with_us.engineering'),$this->transalor->trans('form.choices.work_with_us.information_systems') => $this->transalor->trans('form.choices.work_with_us.information_systems'),$this->transalor->trans('form.choices.work_with_us.research_and_development') => $this->transalor->trans('form.choices.work_with_us.research_and_development'),$this->transalor->trans('form.choices.work_with_us.logistics') => $this->transalor->trans('form.choices.work_with_us.logistics'),$this->transalor->trans('form.choices.work_with_us.marketing') => $this->transalor->trans('form.choices.work_with_us.marketing'),$this->transalor->trans('form.choices.work_with_us.operations') => $this->transalor->trans('form.choices.work_with_us.operations'),$this->transalor->trans('form.choices.work_with_us.human_resources') => $this->transalor->trans('form.choices.work_with_us.human_resources'),$this->transalor->trans('form.choices.work_with_us.quality_assurance') => $this->transalor->trans('form.choices.work_with_us.quality_assurance'),$this->transalor->trans('form.choices.work_with_us.packaging_worker') => $this->transalor->trans('form.choices.work_with_us.packaging_worker'),$this->transalor->trans('form.choices.work_with_us.dough_mixer') => $this->transalor->trans('form.choices.work_with_us.dough_mixer'),$this->transalor->trans('form.choices.work_with_us.supply_chain') => $this->transalor->trans('form.choices.work_with_us.supply_chain'),$this->transalor->trans('form.choices.work_with_us.legal_affairs') => $this->transalor->trans('form.choices.work_with_us.legal_affairs'),]])->add('file', FileType::class, ['required' => true,'constraints' => [new File(['maxSize' => '10M','mimeTypes' => ['image/jpeg','image/jpg','image/png','application/pdf','application/x-pdf',],'mimeTypesMessage' => $this->transalor->trans('form.errors.wrong_file_type'),])],])->add('message', TextareaType::class)->add('privacy', CheckboxType::class)// ->add('data', CheckboxType::class);}public function configureOptions(OptionsResolver $resolver): void{$resolver->setDefaults([// 'mapped' => false,]);}}