continue to implement form customer
This commit is contained in:
@@ -68,12 +68,14 @@ class CustomerCreation extends BaseForm
|
|||||||
->add("zipcode", "text", array(
|
->add("zipcode", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
new Constraints\NotBlank()
|
||||||
)
|
),
|
||||||
|
"label" => "zipcode"
|
||||||
))
|
))
|
||||||
->add("country", "text", array(
|
->add("country", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
new Constraints\NotBlank()
|
||||||
)
|
),
|
||||||
|
"label" => "country"
|
||||||
))
|
))
|
||||||
->add("password", "password", array(
|
->add("password", "password", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{$message}
|
{$message}
|
||||||
{/form_error}
|
{/form_error}
|
||||||
|
|
||||||
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} >
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
{form_field form=$form.lastname}
|
{form_field form=$form.lastname}
|
||||||
@@ -17,7 +17,53 @@
|
|||||||
{$message}
|
{$message}
|
||||||
{/form_error}
|
{/form_error}
|
||||||
|
|
||||||
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} >
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.address1}
|
||||||
|
{form_error form=$form.address1}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.address2}
|
||||||
|
{form_error form=$form.address2}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.address3}
|
||||||
|
{form_error form=$form.address3}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.zipcode}
|
||||||
|
{form_error form=$form.zipcode}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} > <br />
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.country}
|
||||||
|
{form_error form=$form.country}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label>
|
||||||
|
<select name="{$name}">
|
||||||
|
<option value="1">France</option>
|
||||||
|
<option value="2">Belgium</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
<br />
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
<input type="submit" value="valider">
|
<input type="submit" value="valider">
|
||||||
|
|||||||
Reference in New Issue
Block a user