caisse-bliss/app/Resources/HWIOAuthBundle/views/layout.html.twig

64 lines
2.8 KiB
Twig
Raw Normal View History

2018-04-04 16:25:25 +02:00
{% extends '::default/index.html.twig' %}
{% block title %}Login{% endblock %}
2018-04-04 17:42:27 +02:00
{% block body %}
<h2>Le login</h2>
<div class="row">
<div class="col-xs-6">
<form action="{{ path("fos_user_security_check") }}" method="post">
{#<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>#}
{#{{ form_rest(form) }}#}
{% if error %}
<div class="text-danger">{{ error|trans({}, 'FOSUserBundle') }}</div>
{% endif %}
<div style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
{% if last_sername is defined %}
<input type="text" id="username" name="_username" value="{{ last_username }}"
required="required " class="form-control" id="username"
placeholder="{% trans %}Username{% endtrans %}">
{% else %}
<input type="text" id="username" name="_username" value=""
required="required " class="form-control" id="username"
placeholder="{% trans %}Username{% endtrans %}">
{% endif %}
</div>
<div style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" id="password" name="_password" required="required"
class="form-control"
id="password" placeholder="{% trans %}Password{% endtrans %}">
</div>
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{% trans %}Remember me{% endtrans %}</label>
<br>
<!-- <font color=blue Garder ma session active /font>-->
<input type="submit" id="_submit" class="btn btn-primary btn-block" name="_submit"
value="connexion"/>
<br>
<fieldset>
<a href="{{ path("fos_user_resetting_request") }}">
{% trans %}Forgot your password
?{% endtrans %}</a>
<br>
<a href="{{ path('fos_user_registration_register') }}">
{% trans %}You don't have an account
?{% endtrans %} </a>
</fieldset>
</form>
</div>
<div class="col-xs-6">
{#{% block hwi_oauth_content %}#}
{#{% endblock hwi_oauth_content %}#}
</div>
</div>
{% endblock body %}