rearrange login screen

This commit is contained in:
Thomas Waldmann 2013-11-02 08:04:17 +01:00
parent 25259dd353
commit 4029deb1bf

View File

@ -2,30 +2,32 @@
{% load i18n %}{% load bootstrap %}
{% block title %}{% trans "Login" %}{% endblock %}
{% block content %}
{% if form.errors %}
<p>{% blocktrans %}Your username and password didn't match. Please try again.{% endblocktrans %}</p>
{% endif %}
<div class="row">
<div class="col-lg-4">
<div class="col-lg-5">
<h1>Login with a local Account</h1>
{% if form.errors %}
<p>{% blocktrans %}Your username and password didn't match. Please try again.{% endblocktrans %}</p>
{% endif %}
<form method="post" action="{% url 'auth_login' %}">
{% csrf_token %}
{{ form|bootstrap }}
<p><a href="{% url 'auth_password_reset' %}">Forgot</a> your password?
<a href="{% url 'registration_register' %}">Need an account</a>?</p>
<button type="submit" class="btn btn-primary">login</button>
<input type="hidden" name="next" value="{{ next }}" />
</form>
<div>
Login with:
</div>
<div class="col-lg-1">
</div>
<div class="col-lg-5">
<h1>Login with a remote Account</h1>
<ul>
{% for backend in backends.backends %}
<li><a href="{% url 'social:begin' backend %}">{{ backend }}</a></li>
{% endfor %}
</ul>
</div>
<div class="col-lg-1">
</div>
</div>
{% endblock %}