add missing field to customerCreation field

This commit is contained in:
Manuel Raynaud
2013-07-02 14:35:18 +02:00
parent e15c53625e
commit 33aba6b3d5
4 changed files with 71 additions and 11 deletions

View File

@@ -61,12 +61,24 @@ class CustomerCreation extends BaseForm
->add("address3", "text", array(
"label" => "Address Line 3"
))
->add("phone", "text", array(
"label" => "phone"
))
->add("cellphone", "text", array(
"label" => "cellphone"
))
->add("zipcode", "text", array(
"constraints" => array(
new Constraints\NotBlank()
),
"label" => "zipcode"
))
->add("city", "text", array(
"constraints" => array(
new Constraints\NotBlank()
),
"label" => "city"
))
->add("country", "text", array(
"constraints" => array(
new Constraints\NotBlank()
@@ -79,8 +91,8 @@ class CustomerCreation extends BaseForm
new Constraints\Email(),
new Constraints\Callback(array(
"methods" => array(
$this,
"verifyExistingEmail"
array($this,
"verifyExistingEmail")
)
))
),
@@ -90,8 +102,8 @@ class CustomerCreation extends BaseForm
"constraints" => array(
new Constraints\Callback(array(
"methods" => array(
$this,
"verifyEmailField"
array($this,
"verifyEmailField")
)
))
),