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