<?php $this->layout='login'; ?>
<div class="users form">
	<form method="post" role="form" action="<?php echo $this->createUrl('RecuperarSenha/solicitar'); ?>">
		<fieldset id="step-1">
			<legend>Esqueceu sua senha?</legend>
			<?php
			foreach(Yii::app()->user->getFlashes() as $key => $message) {
				echo '<div class="alert alert-' . $key . '">' . $message . "</div>\n";
			}
			?>
			<p>Informe seus dados abaixo para enviarmos um link de recuperação de senha</p>

			<div class="form-group has-feedback text required">
				<label class="control-label sr-only" for="usuario">Usuário</label>
				<div class="input-group">
					<input type="text" name="RecuperarSenha[FUN_USUARIO]" class="form-control" placeholder="Usuário" required="required" minlength="4" maxlength="50" id="usuario" /><span class="input-group-addon"><i class="form-control-feedback glyphicon glyphicon-user"></i>
				</span>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-4 pull-right">
				<button type="submit" class="btn-block btn-flat btn btn-primary">Enviar</button></div>
			</div>
		</fieldset>
	</form>
	<a href="index.php?r=site/login" class="link-form">Fazer login</a>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		$('#usuario').focus();
	});
</script>