moviewyrm/bookwyrm/templates/login.html

68 lines
2.4 KiB
HTML
Raw Normal View History

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
{% block title %}{% trans "Login" %}{% endblock %}
{% block content %}
2020-09-29 17:21:10 +00:00
<div class="columns">
<div class="column">
<div class="box">
<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">
{% csrf_token %}
<div class="field">
<label class="label" for="id_localname">{% trans "Username:" %}</label>
<div class="control">
2021-01-04 18:48:48 +00:00
{{ login_form.localname }}
</div>
</div>
<div class="field">
<label class="label" for="id_password">{% trans "Password:" %}</label>
<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>
<div class="field is-grouped">
<div class="control">
<button class="button is-primary" type="submit">{% trans "Log in" %}</button>
</div>
<div class="control">
2021-05-04 16:34:16 +00:00
<small><a href="{% url 'password-reset' %}">{% trans "Forgot your password?" %}</a></small>
</div>
2020-09-29 17:21:10 +00:00
</div>
</form>
</div>
2021-05-18 18:22:45 +00:00
</div>
<div class="column">
<div class="box has-background-primary-light">
{% if site.allow_registration %}
<h2 class="title">{% trans "Create an Account" %}</h2>
2021-01-12 16:19:08 +00:00
<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>
{% endif %}
</div>
</div>
2021-05-18 18:22:45 +00:00
</div>
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 %}