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 %}
|
2021-09-18 22:15:48 +00:00
|
|
|
<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 %}
|
2021-08-07 00:39:22 +00:00
|
|
|
|
2021-09-18 22:15:48 +00:00
|
|
|
{% if show_confirmed_email %}
|
|
|
|
<p class="notification is-success">{% trans "Success! Email address confirmed." %}</p>
|
|
|
|
{% endif %}
|
2021-10-16 18:15:38 +00:00
|
|
|
<form name="login-confirm" method="post" action="/login">
|
2021-09-18 22:15:48 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{% if show_confirmed_email %}<input type="hidden" name="first_login" value="true">{% endif %}
|
|
|
|
<div class="field">
|
2021-10-16 17:55:51 +00:00
|
|
|
<label class="label" for="id_localname_confirm">{% trans "Username:" %}</label>
|
2021-09-18 22:15:48 +00:00
|
|
|
<div class="control">
|
2021-10-16 17:55:51 +00:00
|
|
|
<input type="text" name="localname" maxlength="255" class="input" required="" id="id_localname_confirm" value="{{ login_form.localname.value|default:'' }}">
|
2020-10-01 03:31:44 +00:00
|
|
|
</div>
|
2021-09-18 22:15:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2021-10-16 17:55:51 +00:00
|
|
|
<label class="label" for="id_password_confirm">{% trans "Password:" %}</label>
|
2021-09-18 22:15:48 +00:00
|
|
|
<div class="control">
|
2021-11-29 22:30:14 +00:00
|
|
|
<input type="password" name="password" maxlength="128" class="input" required="" id="id_password_confirm" aria-describedby="desc_password">
|
2020-09-29 17:21:10 +00:00
|
|
|
</div>
|
2021-11-29 22:30:14 +00:00
|
|
|
|
|
|
|
{% include 'snippets/form_errors.html' with errors_list=login_form.password.errors id="desc_password" %}
|
2021-09-18 22:15:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="field is-grouped">
|
|
|
|
<div class="control">
|
|
|
|
<button class="button is-primary" type="submit">{% trans "Log in" %}</button>
|
2020-09-29 17:21:10 +00:00
|
|
|
</div>
|
2021-09-18 22:15:48 +00:00
|
|
|
<div class="control">
|
|
|
|
<small><a href="{% url 'password-reset' %}">{% trans "Forgot your password?" %}</a></small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-05-18 18:22:45 +00:00
|
|
|
</div>
|
|
|
|
|
2021-09-18 22:15:48 +00:00
|
|
|
{% if site.allow_registration %}
|
|
|
|
<div class="column is-half">
|
2020-10-04 21:30:40 +00:00
|
|
|
<div class="box has-background-primary-light">
|
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>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-18 22:15:48 +00:00
|
|
|
{% endif %}
|
2020-10-04 21:30:40 +00:00
|
|
|
|
2021-09-18 22:15:48 +00:00
|
|
|
<div class="column">
|
|
|
|
<div class="box">
|
|
|
|
{% include 'snippets/about.html' %}
|
2020-11-05 21:51:16 +00:00
|
|
|
|
2021-09-18 22:15:48 +00:00
|
|
|
<p class="block">
|
|
|
|
<a href="{% url 'about' %}">{% trans "More about this site" %}</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
2020-01-29 01:23:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-18 22:15:48 +00:00
|
|
|
|
2020-01-25 23:25:19 +00:00
|
|
|
{% endblock %}
|