create newsletter template

This commit is contained in:
Manuel Raynaud
2013-10-22 10:49:30 +02:00
parent c9074892b2
commit cc4f4f0bbe
6 changed files with 81 additions and 5 deletions

View File

@@ -22,8 +22,10 @@
/*************************************************************************************/
namespace Thelia\Form;
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\NotBlank;
use Thelia\Core\Translation\Translator;
/**
@@ -61,6 +63,10 @@ class NewsletterForm extends BaseForm
'constraints' => array(
new NotBlank(),
new Email()
),
'label' => Translator::getInstance()->trans('email'),
'label_attr' => array(
'for' => 'email_newsletter'
)
));
}