Skip to content

Instantly share code, notes, and snippets.

@morontt
Created May 29, 2014 12:55
Show Gist options
  • Save morontt/d85f1737233cec467eb1 to your computer and use it in GitHub Desktop.
Save morontt/d85f1737233cec467eb1 to your computer and use it in GitHub Desktop.
example login.html.twig
{% 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