diff --git a/src/Form/EmailFormBuilder.php b/src/Form/EmailFormBuilder.php deleted file mode 100644 index 20d23c7..0000000 --- a/src/Form/EmailFormBuilder.php +++ /dev/null @@ -1,85 +0,0 @@ -setLabelPrefix($this->config->get('form.label.prefix')) - ->setLabelLength($this->config->get('form.label.length')); - - $form->addField(new TextField('company', $this->translator->trans('form.email.company'))); - $form->addField((new SelectField('salutation', $this->translator->trans('form.email.salutation'))) - ->setOptions(array( - $this->translator->trans('form.email.salutation.female'), - $this->translator->trans('form.email.salutation.male'), - )) - ->setRequired(true)); - $form->addField(new TextField('firstname', $this->translator->trans('form.email.firstname'))); - $form->addField(new TextField('lastname', $this->translator->trans('form.email.lastname'))); - $form->addField(new TextField('email', $this->translator->trans('form.email.email'))); - $form->addField(new TextField('offer_title', $this->translator->trans('form.email.offer_title'))); - $form->addField(new TextField('offer_link', $this->translator->trans('form.email.offer_link'), false)); - - $form->addField((new BooleanField('add_subject', $this->translator->trans('form.email.add_subject'))) - ->setSubform(function($subform, $value) { - if ($value === true) { - $form->addField(new TextField('subject', $this->translator->trans('form.email.subject'))); - } - })); - - return $form; - } -} -