login button block

This commit is contained in:
ty kayn 2019-07-05 11:48:38 +02:00
parent 1137e57fe7
commit 69ce5a7e78
1 changed files with 44 additions and 42 deletions

View File

@ -4,10 +4,10 @@
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
<div class="padded"> <div class="padded">
<h1> <h1>
<i class="fa fa-key"></i> <i class="fa fa-key"></i>
Se connecter Se connecter
</h1> </h1>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
@ -15,56 +15,58 @@
<hr> <hr>
</div> </div>
<div class="padded"> <div class="padded">
<p>
<a class="btn btn-info btn-block" href="{{ path('fos_user_registration_register') }}">
Créer un compte
</a>
</p>
<p> <p>
<a class="btn btn-info" href="{{ path('fos_user_resetting_request') }}"> <a class="btn btn-warning btn-block" href="{{ path('fos_user_resetting_request') }}">
Mot de passe oublié? Mot de passe oublié?
</a> </a>
</p> </p>
<p> </div>
<a class="btn btn-info" href="{{ path('fos_user_registration_register') }}">
Créer un compte
</a>
</p>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="padded"> <div class="padded">
{% if error %} {% if error %}
<div class="alert alert-info">{{ error.messageKey|trans(error.messageData, 'security') }}</div> <div class="alert alert-info">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path("fos_user_security_check") }}" method="post">
{% if csrf_token %}
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
{% endif %} {% endif %}
<div>
<label for="username">{{ 'security.login.username'|trans }}</label> <form action="{{ path("fos_user_security_check") }}" method="post">
<input type="text" id="username" class="input-lg" name="_username" value="{{ last_username }}" required="required" {% if csrf_token %}
autocomplete="username"/> <input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
</div> {% endif %}
<div> <div>
<label for="password">{{ 'security.login.password'|trans }}</label> <label for="username">{{ 'security.login.username'|trans }}</label>
<input type="password" id="password" class="input-lg" name="_password" required="required" <input type="text" id="username" class="input-lg" name="_username" value="{{ last_username }}"
autocomplete="current-password"/> required="required"
autocomplete="username"/>
</div>
<div>
</div> <label for="password">{{ 'security.login.password'|trans }}</label>
<div class="padded-v"> <input type="password" id="password" class="input-lg" name="_password" required="required"
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/> autocomplete="current-password"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
</div>
<input class="btn btn-success btn-block btn-lg" type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}"/> </div>
</form> <div class="padded-v">
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
</div>
<input class="btn btn-success btn-block btn-lg" type="submit" id="_submit" name="_submit"
value="{{ 'security.login.submit'|trans }}"/>
</form>
</div>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}