<commit_before><?php $view->extend('EmVistaBundle::base.html.php'); ?>
<?php $view['slots']->start('body') ?>


<div class="row signUpOrLogIn" >
    <div class="col-sm-4 col-sm-offset-1 agrupador <?php echo $focado == 'login' ? 'focado' : '';?>">

        <form action="<?php echo $view['router']->generate('login_check') ?>" method="post" id="loginForm">
            <fieldset>

                <div class="page-header">
                    <h4>Login</h4>
                </div>
                <div class="control-group">
                    <label class="control-label" for="email">Email</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge validate[required,custom[email]]" id="email" name="_username" value="<?php echo $last_username ?>">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="senha">Senha</label>
                    <div class="controls">
                        <input type="password" class="input-xlarge validate[required,custom[onlyLetterNumber,minSize[6],maxSize[50]]]" id="<PASSWORD>ha" name="_password">
                    </div>
                </div>
                <div class="form-inline button-field">
                    <div class="control-group">
                        <div class="controls">

                            <button type="submit" class="btn btn-success">Entrar</button>
                            <label class="checkbox">
                                <input type="checkbox" id="rememberme" value="1">
                                Continuar conectado
                            </label>
                        </div>
                    </div>
                </div>

                <br>
                <p><a href="<?php echo $view['router']->generate('usuario_esqueci-minha-senha') ?>">Esqueci minha senha</a></p>

            </fieldset>

        </form>
    </div>
    <div class="col-sm-4 col-sm-offset-1 agrupador <?php echo $focado == 'registro' ? 'focado' : '';?>">
        <form  action="<?php echo $view['router']->generate('usuario_registrar') ?>" method="post">
            <fieldset>
                <div class="page-header">
                    <h4>Registre-se</h4>
                </div>
                <div class="control-group">
                    <label class="control-label" for="usuario-nome">Nome</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge validate[required,minSize[2],maxSize[100]]" id="usuario-nome" name="usuario[nome]">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="usuario-email">Email</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge validate[required,custom[email]]" id="usuario-email" name="usuario[email]">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="usuario-email">Repita o Email</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge  validate[required, equals[usuario-email]]" id="confirma-usuario-email" name="usuario[confirmaEmail]">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="usuario-senha">Senha </label>

                    <div class="controls">
                        <input type="password" class="input-medium validate[required,custom[onlyLetterNumber,minSize[6],maxSize[50]]]" id="usuario-senha" name="usuario[senha]" >
                    </div>

                    <p class="help-block">No mínimo 6 caracteres alfanuméricos.</p>

                </div>
                <div class="control-group">
                    <label class="control-label" for="usuario-senha">Repita a  Senha</label>
                    <div class="controls">
                        <input type="password" class="input-medium validate[required, equals[usuario-senha]]" id="confirma-usuario-senha" name="usuario[confirmaSenha]">
                    </div>
                </div>
                <div class="button-field">
                    <button type="submit" class="btn btn-success">Criar Conta</button>
                </div>
            </fieldset>
        </form>
    </div>
</div>

<?php $view['slots']->stop();

$view['slots']->start('js');
foreach($view['assetic']->javascripts(array(
    '@EmVistaBundle/Resources/public/js/jQueryValidationEngine/js/jquery.validationEngine.js',
    '@EmVistaBundle/Resources/public/js/jQueryValidationEngine/js/languages/jquery.validationEngine-pt_BR.js',
    '@EmVistaBundle/Resources/public/js/emvista/usuario/registro.js')) as $url): ?>
    <script type="text/javascript" src="<?php echo $view->escape($url) ?>"></script>
<?php endforeach; ?>
<?php $view['slots']->stop(); ?>
<commit_msg>botoes para logar com as redes sociais<commit_after><?php $view->extend('EmVistaBundle::base.html.php'); ?>
<?php $view['slots']->start('body') ?>

<div class="container">
    <div class="row" >
        <div class="col-sm-6">
            <form action="<?php echo $view['router']->generate('login_check') ?>" method="post" id="loginForm">
                <fieldset>
                    <div class="page-header">
                        <h4>Login</h4>
                    </div>
                    <div class="form-group">
                        <a class="btn btn-default" href="<?php echo $view['router']->generate('hwi_oauth_service_redirect', array('service' => 'facebook')); ?>"><span class="fa fa-facebook fa-2x"></span></a>
                        <a class="btn btn-default" href="<?php echo $view['router']->generate('hwi_oauth_service_redirect', array('service' => 'twitter')); ?>"><span class="fa fa-twitter fa-2x"></span></a>
                        <a class="btn btn-default" href="<?php echo $view['router']->generate('hwi_oauth_service_redirect', array('service' => 'google')); ?>"><span class="fa fa-google-plus fa-2x"></span></a>
                    </div>                    
                    <p class="lead">OU</p>
                    <div class="form-group">
                        <label for="email">Email</label>
                        <input type="text" class="form-control validate[required,custom[email]]" id="email" name="_username" value="<?php echo $last_username ?>">
                    </div>
                    <div class="form-group">
                        <label for="senha">Senha</label>
                        <input type="password" class="form-control validate[required,custom[onlyLetterNumber,minSize[6],maxSize[50]]]" id="senha" name="_password">
                    </div>
                    <div class="form-group">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="rememberme" value="1"> Continuar conectado
                            </label>
                        </div>
                    </div>         
                    <button type="submit" class="btn btn-success">Entrar</button>
                    <br><br>
                    <p><a href="<?php echo $view['router']->generate('usuario_esqueci-minha-senha') ?>">Esqueci minha senha</a></p>
                </fieldset>
            </form>
        </div>
        <div class="col-sm-6">
            <form action="<?php echo $view['router']->generate('usuario_registrar') ?>" method="post">
                <fieldset>
                    <div class="page-header">
                        <h4>Registre-se</h4>
                    </div>
                    <div class="form-group">
                        <label for="usuario-nome">Nome</label>
                        <input type="text" class="form-control validate[required,minSize[2],maxSize[100]]" id="usuario-nome" name="usuario[nome]">
                    </div>
                    <div class="form-group">
                        <label for="usuario-email">Email</label>
                        <input type="text" class="form-control validate[required,custom[email]]" id="usuario-email" name="usuario[email]">
                    </div>
                    <div class="form-group">
                        <label for="usuario-email">Repita o Email</label>
                        <input type="text" class="form-control validate[required, equals[usuario-email]]" id="confirma-usuario-email" name="usuario[confirmaEmail]">
                    </div>
                    <div class="form-group">
                        <label for="usuario-senha">Senha </label>
                        <input type="password" class="form-control validate[required,custom[onlyLetterNumber,minSize[6],maxSize[50]]]" id="usuario-senha" name="usuario[senha]" >
                        <p class="help-block">No mínimo 6 caracteres alfanuméricos.</p>
                    </div>
                    <div class="form-group">
                        <label for="usuario-senha">Repita a  Senha</label>
                        <input type="password" class="form-control validate[required, equals[usuario-senha]]" id="confirma-usuario-senha" name="usuario[confirmaSenha]">
                    </div>
                    <button type="submit" class="btn btn-success">Criar Conta</button>
                </fieldset>
            </form>
        </div>
    </div>
</div>

<?php $view['slots']->stop(); ?>

<?php $view['slots']->start('js'); ?>

<?php foreach ($view['assetic']->javascripts(array(
    '@EmVistaBundle/Resources/public/js/jQueryValidationEngine/js/jquery.validationEngine.js',
    '@EmVistaBundle/Resources/public/js/jQueryValidationEngine/js/languages/jquery.validationEngine-pt_BR.js',
    '@EmVistaBundle/Resources/public/js/emvista/usuario/registro.js')) as $url):
?>

<script type="text/javascript" src="<?php echo $view->escape($url) ?>"></script>

<?php endforeach; ?>

<?php $view['slots']->stop(); ?>

{'fraction_non_alphanumeric': 0.16589361492154348, 'fraction_numerical': 0.0040461857297937436, 'mean_word_length': 1.8554522400676248, 'pattern_counts': {'":': 0, '<': 222, '<?xml version=': 0, '>': 248, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3523244', 'n_tokens_mistral': 2916, 'n_tokens_neox': 2820, 'n_words': 466}