moviewyrm/bookwyrm/templates/login.html

62 lines
2.2 KiB
HTML
Raw Normal View History

2020-01-25 23:25:19 +00:00
{% extends 'layout.html' %}
{% block content %}
2020-03-15 21:15:36 +00:00
2020-09-29 17:21:10 +00:00
<div class="columns">
<div class="column">
<div class="box">
<h1 class="title">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 %}
<form name="login" method="post" action="/user-login">
{% csrf_token %}
<div class="field">
2021-01-04 18:48:48 +00:00
<label class="label" for="id_localname">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">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">Log in</button>
</div>
<div class="control">
2020-12-02 23:19:29 +00:00
<small><a href="/password-reset">Forgot your password?</a></small>
</div>
2020-09-29 17:21:10 +00:00
</div>
</form>
</div>
<div class="box has-background-primary-light">
{% if site.allow_registration %}
<h2 class="title">Create an Account</h2>
<form name="register" method="post" action="/user-register">
{% include 'snippets/register_form.html' %}
</form>
{% else %}
<h2 class="title">This instance is closed</h2>
<p>Contact an administrator to get an invite</p>
{% endif %}
</div>
</div>
<div class="column">
<div class="block">
{% include 'snippets/about.html' %}
2020-11-05 21:51:16 +00:00
<p class="block">
<a href="/about/">More about this site</a>
</p>
</div>
2020-01-29 01:23:38 +00:00
</div>
</div>
2020-01-25 23:25:19 +00:00
{% endblock %}