<h2>Créer un nouveau client</h2>
<? if ($message) : ?>
	<h3 class="message">
		<?= $message; ?>
	</h3>
<? endif; ?>

<?= Form::open('user/create',array('class' =>"form-horizontal" )); ?>

<?= Form::label('username', 'Utilisateur : ',array('class' =>"control-label" )); ?>
<?= Form::input('username', HTML::chars($username)); ?>
<div class="error">
	<?= Arr::get($errors, 'username'); ?>
</div>

<?= Form::label('email', 'E-mail : ',array('class' =>"control-label" )); ?>
<?= Form::input('email', HTML::chars($email),array('type' =>"email" ) ); ?>
<div class="error">
	<?= Arr::get($errors, 'email'); ?>
</div>



<?= Form::label('raison_sociale', 'R.S : ',array('class' =>"control-label" )); ?>
<?= Form::input('raison_sociale',HTML::chars($raison_sociale)); ?>
<div class="error">
	<?= Arr::get($errors, 'raison_sociale'); ?>
</div>

<?= Form::label('telephone', 'Téléphone : ',array('class' =>"control-label" )); ?>
<?= Form::input('telephone',HTML::chars($telephone),array('type' =>"tel" )); ?>
<div class="error">
	<?= Arr::get($errors, 'telephone'); ?>
</div>

<?= Form::label('nom_contact', 'Nom de contact : ',array('class' =>"control-label" )); ?>
<?= Form::input('nom_contact',HTML::chars($nom_contact)); ?>
<div class="error">
	<?= Arr::get($errors, 'nom_contact'); ?>
</div>

<?= Form::label('adresse', 'Adresse : ',array('class' =>"control-label" )); ?>
<?= Form::input('adresse',HTML::chars($adresse)); ?>
<div class="error">
	<?= Arr::get($errors, 'adresse'); ?>
</div>

<?= Form::label('password', 'Mot de passe : ',array('class' =>"control-label" )); ?>
<?= Form::password('password'); ?>
<div class="error">
	<?= Arr::path($errors, '_external.password'); ?>
</div>

<?= Form::label('password_confirm', 'Confirmez le mot de passe : ',array('class' =>"control-label" )); ?>
<?= Form::password('password_confirm'); ?>
<div class="error">
	<?= Arr::path($errors, '_external.password_confirm'); ?>
</div>


<?= Form::input('isuser',0,array('type' =>"hidden" )); ?>
<div class="error">
	<?= Arr::get($errors, 'isuser'); ?>
</div>

<?= Form::submit('create', 'Creer un client'); ?>
<?= Form::close(); ?>
