create creation account form

This commit is contained in:
Manuel Raynaud
2013-07-01 16:16:24 +02:00
parent 6e29294418
commit 62a3dc3074
3 changed files with 41 additions and 39 deletions

View File

@@ -37,26 +37,34 @@ class CustomerCreation extends BaseForm
->add("firstname", "text", array(
"constraints" => array(
new Constraints\NotBlank()
)
),
"label" => "firstname"
))
->add("lastname", "text", array(
"constraints" => array(
new Constraints\NotBlank()
)
),
"label" => "lastname"
))
->add("email", "email", array(
"constraints" => array(
new Constraints\NotBlank(),
new Constraints\Email()
)
),
"label" => "email"
))
->add("address1", "text", array(
"constraints" => array(
new Constraints\NotBlank()
)
),
"label" => "address"
))
->add("address2", "text", array(
"label" => "Address Line 2"
))
->add("address3", "text", array(
"label" => "Address Line 3"
))
->add("address2", "text")
->add("address3", "text")
->add("zipcode", "text", array(
"constraints" => array(
new Constraints\NotBlank()