{# Extension of login page #}
{% extends '::root.html.twig' %}

{% block title %}Keosu Authentication{% endblock %}

{% block skeleton %}
	<div class="wellcustom" id="login-container">
	{% block fos_user_content %}
		<div class="logotop" style="text-align:center;">KEOSU</div>
		{% if error %}
		    <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
		{% endif %}
		<div class="container">
			<div class="logincontainer">
				<form action="{{ path("fos_user_security_check") }}" method="post">
				    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
				
				    <label for="username">Username:</label>
				    <input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
				
				    <label for="password">Password</label>
				    <input class="form-control" type="password" id="password" name="_password" required="required" />
					<br/>
				    <input id="spinner-load" class="form-control" type="submit" id="_submit" name="_submit" value="Se connecter" />
				</form>
			</div>
		</div>
	{% endblock fos_user_content %}
	</div>
{% endblock %}
