2020-01-25 23:25:19 +00:00
|
|
|
{% extends 'layout.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2020-03-15 21:15:36 +00:00
|
|
|
|
2021-02-28 18:00:36 +00:00
|
|
|
{% block title %}{% trans "Login" %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-09-29 17:21:10 +00:00
|
|
|
<div class="columns">
|
2020-10-01 03:31:44 +00:00
|
|
|
<div class="column">
|
2020-10-04 21:30:40 +00:00
|
|
|
<div class="box">
|
2021-02-27 22:22:39 +00:00
|
|
|
<h1 class="title">{% trans "Log in" %}</h1>
|
2020-10-04 22:10:34 +00:00
|
|
|
{% if login_form.non_field_errors %}
|
|
|
|
<p class="notification is-danger">{{ login_form.non_field_errors }}</p>
|
|
|
|
{% endif %}
|
2021-01-12 16:08:43 +00:00
|
|
|
<form name="login" method="post" action="/login">
|
2020-10-01 03:31:44 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="field">
|
2021-02-27 22:22:39 +00:00
|
|
|
<label class="label" for="id_localname">{% trans "Username:" %}</label>
|
2020-10-01 03:31:44 +00:00
|
|
|
<div class="control">
|
2021-01-04 18:48:48 +00:00
|
|
|
{{ login_form.localname }}
|
2020-10-01 03:31:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2021-02-27 22:22:39 +00:00
|
|
|
<label class="label" for="id_password">{% trans "Password:" %}</label>
|
2020-10-01 03:31:44 +00:00
|
|
|
<div class="control">
|
|
|
|
{{ login_form.password }}
|
|
|
|
</div>
|
2020-10-04 22:10:34 +00:00
|
|
|
{% for error in login_form.password.errors %}
|
|
|
|
<p class="help is-danger">{{ error | escape }}</p>
|
|
|
|
{% endfor %}
|
2020-09-29 17:21:10 +00:00
|
|
|
</div>
|
2020-10-01 03:31:44 +00:00
|
|
|
<div class="field is-grouped">
|
|
|
|
<div class="control">
|
2021-02-27 22:22:39 +00:00
|
|
|
<button class="button is-primary" type="submit">{% trans "Log in" %}</button>
|
2020-10-01 03:31:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="control">
|
2021-05-04 16:34:16 +00:00
|
|
|
<small><a href="{% url 'password-reset' %}">{% trans "Forgot your password?" %}</a></small>
|
2020-10-01 03:31:44 +00:00
|
|
|
</div>
|
2020-09-29 17:21:10 +00:00
|
|
|
</div>
|
2020-10-01 03:31:44 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2021-05-18 18:22:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
2020-10-04 21:30:40 +00:00
|
|
|
<div class="box has-background-primary-light">
|
2020-12-11 20:07:37 +00:00
|
|
|
{% if site.allow_registration %}
|
2021-02-27 22:22:39 +00:00
|
|
|
<h2 class="title">{% trans "Create an Account" %}</h2>
|
2021-01-12 16:19:08 +00:00
|
|
|
<form name="register" method="post" action="/register">
|
2020-10-04 21:30:40 +00:00
|
|
|
{% include 'snippets/register_form.html' %}
|
|
|
|
</form>
|
|
|
|
{% else %}
|
2021-02-27 22:22:39 +00:00
|
|
|
<h2 class="title">{% trans "This instance is closed" %}</h2>
|
|
|
|
<p>{% trans "Contact an administrator to get an invite" %}</p>
|
2020-10-04 21:30:40 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-18 18:22:45 +00:00
|
|
|
</div>
|
2020-10-04 21:30:40 +00:00
|
|
|
|
2021-05-18 18:22:45 +00:00
|
|
|
<div class="block">
|
|
|
|
<div class="box">
|
|
|
|
{% include 'snippets/about.html' %}
|
2020-11-05 21:51:16 +00:00
|
|
|
|
2021-05-18 18:22:45 +00:00
|
|
|
<p class="block">
|
|
|
|
<a href="{% url 'about' %}">{% trans "More about this site" %}</a>
|
|
|
|
</p>
|
2020-01-29 01:23:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-25 23:25:19 +00:00
|
|
|
{% endblock %}
|