mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-02 12:22:22 +00:00
Cleans up display of login page
This commit is contained in:
parent
246ab992ae
commit
1be4f31a9e
1 changed files with 46 additions and 50 deletions
|
@ -4,10 +4,9 @@
|
||||||
{% block title %}{% trans "Login" %}{% endblock %}
|
{% block title %}{% trans "Login" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="columns">
|
<h1 class="title">{% trans "Log in" %}</h1>
|
||||||
<div class="column">
|
<div class="columns is-multiline">
|
||||||
<div class="box">
|
<div class="column is-half">
|
||||||
<h1 class="title">{% trans "Log in" %}</h1>
|
|
||||||
{% if login_form.non_field_errors %}
|
{% if login_form.non_field_errors %}
|
||||||
<p class="notification is-danger">{{ login_form.non_field_errors }}</p>
|
<p class="notification is-danger">{{ login_form.non_field_errors }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -43,24 +42,19 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="column">
|
|
||||||
<div class="box has-background-primary-light">
|
|
||||||
{% if site.allow_registration %}
|
{% if site.allow_registration %}
|
||||||
|
<div class="column is-half">
|
||||||
|
<div class="box has-background-primary-light">
|
||||||
<h2 class="title">{% trans "Create an Account" %}</h2>
|
<h2 class="title">{% trans "Create an Account" %}</h2>
|
||||||
<form name="register" method="post" action="/register">
|
<form name="register" method="post" action="/register">
|
||||||
{% include 'snippets/register_form.html' %}
|
{% include 'snippets/register_form.html' %}
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
</div>
|
||||||
<h2 class="title">{% trans "This instance is closed" %}</h2>
|
</div>
|
||||||
<p>{% trans "Contact an administrator to get an invite" %}</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="block">
|
<div class="column">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{% include 'snippets/about.html' %}
|
{% include 'snippets/about.html' %}
|
||||||
|
|
||||||
|
@ -68,5 +62,7 @@
|
||||||
<a href="{% url 'about' %}">{% trans "More about this site" %}</a>
|
<a href="{% url 'about' %}">{% trans "More about this site" %}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue