1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php
namespace MyCompany\SellerBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class MyCompanyRegistrationType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('fullname', 'text')
->add('email', 'text')
->add('phoneNumber', 'text')
->add('password', 'password')
->add('passwordConfirm', 'password')
->add('registrationType', 'choice', array(
'choices' => array('1' => 'az', '2' => 'ebay'),
'expanded' => true))
->add('newsletter', 'checkbox', array(
'required' => false
))
->add('partnerMail', 'checkbox', array(
'required' => false
))
->add('termsAndConditionApproval1', 'checkbox')
;
}
} |
Partager