create creation account form
This commit is contained in:
@@ -37,26 +37,34 @@ class CustomerCreation extends BaseForm
|
|||||||
->add("firstname", "text", array(
|
->add("firstname", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
new Constraints\NotBlank()
|
||||||
)
|
),
|
||||||
|
"label" => "firstname"
|
||||||
))
|
))
|
||||||
->add("lastname", "text", array(
|
->add("lastname", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
new Constraints\NotBlank()
|
||||||
)
|
),
|
||||||
|
"label" => "lastname"
|
||||||
))
|
))
|
||||||
->add("email", "email", array(
|
->add("email", "email", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank(),
|
new Constraints\NotBlank(),
|
||||||
new Constraints\Email()
|
new Constraints\Email()
|
||||||
)
|
),
|
||||||
|
"label" => "email"
|
||||||
))
|
))
|
||||||
->add("address1", "text", array(
|
->add("address1", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
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(
|
->add("zipcode", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank()
|
new Constraints\NotBlank()
|
||||||
|
|||||||
27
templates/smarty-sample/connexion.html
Normal file
27
templates/smarty-sample/connexion.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{include file="includes/header.html"}
|
||||||
|
|
||||||
|
{form name="thelia.customer.creation"}
|
||||||
|
<form method="post" action="index_dev.php?action=createCustomer" {form_enctype form=$form} >
|
||||||
|
|
||||||
|
{form_field_hidden form=$form}
|
||||||
|
{form_field form=$form.firstname}
|
||||||
|
{form_error form=$form.firstname}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} >
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form.lastname}
|
||||||
|
{form_error form=$form.lastname}
|
||||||
|
{$message}
|
||||||
|
{/form_error}
|
||||||
|
|
||||||
|
<label> <span>{intl l="{$label}"} : </span></label><input type="text" name="{$name}" {$attr} >
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
<input type="submit" value="valider">
|
||||||
|
</form>
|
||||||
|
{/form}
|
||||||
|
|
||||||
|
{include file="includes/footer.html"}
|
||||||
@@ -7,41 +7,8 @@ An image from asset directory :
|
|||||||
<div>
|
<div>
|
||||||
{intl l='An internationalized string'}
|
{intl l='An internationalized string'}
|
||||||
</div>
|
</div>
|
||||||
{form name="thelia.customer.creation"}
|
|
||||||
<form method="post" action="index_dev.php?action=createCustomer" {form_enctype form=$form} >
|
|
||||||
|
|
||||||
{form_field_hidden form=$form}
|
|
||||||
{form_field form=$form.email}
|
|
||||||
{form_error form=$form.email}
|
|
||||||
{$message}
|
|
||||||
{/form_error}
|
|
||||||
{intl l="{$label}"} : <input type="text" name="{$name}" {$attr} >
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
{form_field form=$form.name}
|
|
||||||
{intl l='name'} : <input type="text" name="{$name}" >
|
|
||||||
{/form_field}
|
|
||||||
{form_field form=$form.age}
|
|
||||||
{intl l='age'} : <input type="text" name="{$name}">
|
|
||||||
{/form_field}
|
|
||||||
<input type="submit" value="valider">
|
|
||||||
</form>
|
|
||||||
{/form}
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
{form name="thelia.admin_login"}
|
|
||||||
<form method="post" action="#" {form_enctype form=$form} >
|
|
||||||
{form_field_hidden form=$form}
|
|
||||||
{form_field form=$form.username}
|
|
||||||
username : <input type="text" name="{$name}" {$attr}>
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
{form_field form=$form.password}
|
|
||||||
password : <input type="password" name="{$name}" {$attr}>
|
|
||||||
{/form_field}
|
|
||||||
</form>
|
|
||||||
{/form}
|
|
||||||
<div>
|
<div>
|
||||||
jQuery data: <span id="jquery_block"></span>
|
jQuery data: <span id="jquery_block"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user