Last active
August 1, 2016 15:14
-
-
Save rawroland/c53af4378dbe1547f862683b55d3bc21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html.twig' %} | |
{% set pageHeader = 'Welcome' %} | |
{% set title = pageHeader %} | |
{% block body %} | |
{% if error %} | |
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div> | |
{% endif %} | |
<form action="{{ path('login') }}" method="post" class="form-horizontal" novalidate="novalidate" accept-charset="utf-8"> | |
<div class="form-group required"> | |
<label for="username" class="col-md-2 control-label">Email:</label> | |
<div class="col-md-10 required"> | |
<input type="text" class="form-control" id="username" name="_username" value="{{ lastEmail }}"/> | |
</div> | |
</div> | |
<div class="form-group required"> | |
<label for="password" class="col-md-2 control-label">Password:</label> | |
<div class="col-md-10 required"> | |
<input name="_password" class="form-control" value="" id="password" required="required" type="password"> | |
</div> | |
</div> | |
<div class="form-group"> | |
<div class="col col-md-10 col-md-offset-2"><a href="{{ path('request_password') }}">Forgot password?</a></div> | |
</div> | |
{# | |
If you want to control the URL the user | |
is redirected to on success (more details below) | |
<input type="hidden" name="_target_path" value="/account" /> | |
#} | |
<div class="form-group"> | |
<div class="col col-md-10 col-md-offset-2"> | |
<input class="btn btn-primary btn-raised" value="Login" type="submit" name="login"> | |
</div> | |
</div> | |
</form> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment