Unverified Commit 57b703b8 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Make the login page somewhat nicer

parent 12da4fed
......@@ -4967,4 +4967,15 @@ ul.rslides > li {
-o-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
\ No newline at end of file
}
.loginForm {
text-align: center;
}
.loginForm table {
margin-left: auto;
margin-right: auto;
}
.loginForm input {
margin: .5em;
}
......@@ -6,24 +6,28 @@
{% block title %}{% trans "Login" %}{% endblock %}
{% block body %}
<h1>{% trans "Log in" %}</h1>
{% if next %}
{% if user.is_authenticated %}
{% blocktrans %}
<p>Your account does not have access to this page. To proceed, please
log in with an account that has access.</p>
{% endblocktrans %}
{% else %}
{% blocktrans %}
<p>Please log in to see this page.</p>
{% endblocktrans %}
{% endif %}
{% if user.is_authenticated %}
{% blocktrans %}
<p>Your account does not have access to this page. To proceed, please
log in with an account that has access.</p>
{% endblocktrans %}
{% else %}
{% blocktrans %}
<p>Please log in to see this page.</p>
{% endblocktrans %}
{% endif %}
<form method="POST" action="{% url 'login' %}">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="hidden" name="next" value="{{ next }}">
<input type="submit" value="{% trans "Login" %}">
{% endif %}
<div class="loginForm">
<form method="POST" action="{% url 'login' %}">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="hidden" name="next" value="{{ next }}">
<input type="submit" value="{% trans "Login" %}">
</form>
</form>
</div>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment