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 @@

{intl l="Create New Account"}

{form name="thelia.customer.creation"} -
+
@@ -26,49 +26,77 @@
-
- -
- - Available input! -
-
- -
- -
- - Invalid input! -
-
- {form_field form=$form field="email"} -
+ {form_field form=$form field="firstname"} +
- + + {if $error } + {$message} + {elseif $value != "" && !$error} + + {/if}
{/form_field} - -
- + {form_field form=$form field="lastname"} +
+ +
+ + {if $error } + {$message} + {elseif $value != "" && !$error} + + {/if} +
+
+ {/form_field} + {form_field form=$form field="email"} +
+
- -
-
- -
- -
- + + {if $error } + {$message} + {elseif $value != "" && !$error} + + {/if}
+ {/form_field} + {form_field form=$form field="phone"} +
+ +
+ + {if $error } + {$message} + {elseif $value != "" && !$error} + + {/if} +
+
+ {/form_field} + {form_field form=$form field="cellphone"} +
+ +
+ + {if $error } + {$message} + {elseif $value != "" && !$error} + + {/if} +
+
+ {/form_field}
- 2. Delivery Informations + 2. {intl l="Delivery Informations"}