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

42 lines
1.5 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">
2018-04-04 18:33:16 +02:00
{% if error %}
<div>{{ error|trans }}</div>
{% endif %}
2018-04-04 17:42:27 +02:00
<form action="{{ path("fos_user_security_check") }}" method="post">
2018-04-04 18:33:16 +02:00
{% if csrf_token is defined %}
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
2018-05-04 17:04:13 +02:00
{% else %}
PAS DE TOKEN CSRF
2018-04-04 17:42:27 +02:00
{% endif %}
2018-04-04 18:33:16 +02:00
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="" required="required"
autocomplete="username"/>
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required"
autocomplete="current-password"/>
2018-04-04 17:42:27 +02:00
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
2018-04-04 18:33:16 +02:00
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
2018-04-04 17:42:27 +02:00
2018-04-04 18:33:16 +02:00
<input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}"/>
2018-04-04 17:42:27 +02:00
</form>
</div>
<div class="col-xs-6">
2018-05-08 11:27:06 +02:00
{#{% block hwi_oauth_content %}#}
{#{% endblock %}#}
2018-04-04 17:42:27 +02:00
</div>
</div>
2018-05-04 17:04:13 +02:00
{% endblock %}