diff --git a/core/lib/Thelia/Form/CustomerCreation.php b/core/lib/Thelia/Form/CustomerCreation.php index 0627e770a..958f781b5 100755 --- a/core/lib/Thelia/Form/CustomerCreation.php +++ b/core/lib/Thelia/Form/CustomerCreation.php @@ -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" + ) )) ; diff --git a/templates/default/register.html b/templates/default/register.html index faa780674..7eea94239 100644 --- a/templates/default/register.html +++ b/templates/default/register.html @@ -18,7 +18,7 @@