Skip to content

Commit

Permalink
Change to email type
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvw committed Nov 19, 2016
1 parent fe43f6a commit b6af588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Kunstmaan/FormBundle/Form/AbstractFormPageAdminType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kunstmaan\FormBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
Expand Down Expand Up @@ -32,7 +33,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('subject', TextType::class, array(
'label' => 'kuma_form.form.page_admin.subject.label',
));
$builder->add('from_email', TextType::class, array(
$builder->add('from_email', EmailType::class, array(
'label' => 'kuma_form.form.page_admin.from_email.label',
));
$builder->add('to_email', TextType::class, array(
Expand Down

0 comments on commit b6af588

Please sign in to comment.