Created
May 29, 2014 12:55
-
-
Save morontt/d85f1737233cec467eb1 to your computer and use it in GitHub Desktop.
example login.html.twig
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 'XxxBundle::layout.html.twig' %} | |
{% trans_default_domain 'questions' %} | |
{% block content %} | |
<div class="wrapper"> | |
<div class="top-options"> | |
<h1>Sing in</h1> | |
<p> | |
Use: | |
<br /> | |
<ul> | |
<li>test/test</li> | |
<li>vasya/test</li> | |
<li>vova/test</li> | |
</ul> | |
</p> | |
{% if error %} | |
<div>{{ error.message }}</div> | |
{% endif %} | |
<form action="{{ path('login_check') }}" method="post"> | |
<fieldset> | |
<label for="username">Username</label> | |
<input type="text" id="username" name="_username" value="{{ last_username }}" /> | |
</fieldset> | |
<fieldset> | |
<label for="password">Password</label> | |
<input type="password" id="password" name="_password" /> | |
</fieldset> | |
<div class="search-data"> | |
<input type="submit" value="Login"> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment