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

<?= Form::open('user/createadmin',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('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',1,array('type' =>"hidden" )); ?> 
<div class="error">
	<?= Arr::get($errors, 'isuser'); ?>
</div>

<?= Form::submit('createadmin', 'Creer un utilisateur'); ?>
<?= Form::close(); ?>
