public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('registrationType', ChoiceType::class, ['label' => 'Registration type', 'choices' => EdkRegistrationSettings::getRegistrationTypes()])->add('startTime', DateTimeType::class, array('label' => 'Beginning of registration', 'years' => $this->currentYears(), 'input' => 'timestamp', 'model_timezone' => 'UTC', 'view_timezone' => $this->timezone->getName(), 'required' => false))->add('endTime', DateTimeType::class, array('label' => 'End of registration', 'years' => $this->currentYears(), 'input' => 'timestamp', 'model_timezone' => 'UTC', 'view_timezone' => $this->timezone->getName(), 'required' => false))->add('externalRegistrationUrl', UrlType::class, ['label' => 'External registration URL', 'attr' => ['help_text' => 'ExternalRegistrationUrlHint'], 'required' => false])->add('externalParticipantNum', NumberType::class, ['label' => 'Number of participants registered externally', 'attr' => ['help_text' => 'ExternalParticipantNumHint'], 'required' => false])->add('participantLimit', NumberType::class, array('label' => 'Expected number of participants', 'required' => false))->add('allowLimitExceed', BooleanType::class, array('label' => 'Allow exceeding the participant limit', 'attr' => array('help_text' => 'AllowLimitExceedHint'), 'required' => false))->add('maxPeoplePerRecord', NumberType::class, array('label' => 'Max. number of people in the record', 'attr' => array('help_text' => 'MaxPeoplePerRecordHint'), 'required' => false))->add('customQuestion', TextType::class, array('label' => 'Custom question', 'attr' => array('help_text' => 'CustomQuestionHint'), 'required' => false))->add('save', SubmitType::class, array('label' => 'Save'));
 }