Cleans up display of login page

This commit is contained in:
Mouse Reeve 2021-09-18 15:15:48 -07:00
parent 246ab992ae
commit 1be4f31a9e

View file

@ -4,10 +4,9 @@
{% block title %}{% trans "Login" %}{% endblock %}
{% block content %}
<div class="columns">
<div class="column">
<div class="box">
<h1 class="title">{% trans "Log in" %}</h1>
<div class="columns is-multiline">
<div class="column is-half">
{% if login_form.non_field_errors %}
<p class="notification is-danger">{{ login_form.non_field_errors }}</p>
{% endif %}
@ -43,24 +42,19 @@
</div>
</form>
</div>
</div>
<div class="column">
<div class="box has-background-primary-light">
{% if site.allow_registration %}
<div class="column is-half">
<div class="box has-background-primary-light">
<h2 class="title">{% trans "Create an Account" %}</h2>
<form name="register" method="post" action="/register">
{% include 'snippets/register_form.html' %}
</form>
{% else %}
<h2 class="title">{% trans "This instance is closed" %}</h2>
<p>{% trans "Contact an administrator to get an invite" %}</p>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="block">
<div class="column">
<div class="box">
{% include 'snippets/about.html' %}
@ -69,4 +63,6 @@
</p>
</div>
</div>
</div>
{% endblock %}