add part of customer form in customer admin template

This commit is contained in:
Manuel Raynaud
2013-09-10 15:46:19 +02:00
parent c7544faf65
commit 3c67903bd7
2 changed files with 70 additions and 33 deletions

View File

@@ -62,7 +62,7 @@ class CustomerCreation extends BaseForm
"constraints" => array(
new Constraints\NotBlank()
),
"label_for" => array(
"label_attr" => array(
"for" => "address"
),
"label" => Translator::getInstance()->trans("Street Address")
@@ -79,6 +79,12 @@ class CustomerCreation extends BaseForm
"for" => "address3"
)
))
->add("company", "text", array(
"label" => Translator::getInstance()->trans("Company name"),
"label_attr" => array(
"for" => "company"
)
))
->add("phone", "text", array(
"label" => Translator::getInstance()->trans("Phone"),
"label_attr" => array(
@@ -172,7 +178,10 @@ class CustomerCreation extends BaseForm
array($this, "verifyPasswordField")
)))
),
"label" => "password confirmation"
"label" => "Password confirmation",
"label_attr" => array(
"for" => "password_confirmation"
)
))
;