{% extends "bootstrap.base.twig" %}
{% block pagetitle %}Login{% endblock %}
{% block htmlhead %}
{% endblock %}
{% block header %}{% endblock %}
{% block content %}
<div class="container">
<div class="panel panel-primary" style="margin: 20px 5px 10px 5px">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form role="form" action="{{ path('login_check') }}" method="post"><fieldset>
<div class="form-group">
<input class="form-control" placeholder="Username (admin)"
name="_username" value="{{ last_username }}" autofocus>
</div>
<div class="form-group">
<input class="form-control" placeholder="Password (foo)"
name="_password" type="password" value="">
</div>
<!-- Change this to a button or input when using this as a form -->
{#<a href="#" class="btn btn-lg btn-success btn-block">Login</a>#}
<button type="submit" class="btn btn-lg btn-primary btn-block">Sign in</button>
</fieldset></form>
</div>
</div>
{% if error != ''%}
<div id="alert" class="alert alert-danger">
<button class="close" data-dismiss="alert" type="button">×</button>
<h4>Error</h4>
{{ error }}
</div>
{% endif %}
</div>
{% endblock %}
{% block footer %}{% endblock %}
|