2021-02-27 23:18:27 +01:00
|
|
|
{% extends "account/pre_login_base.html" %}
|
2021-02-27 21:07:48 +01:00
|
|
|
{% load i18n %}
|
|
|
|
{% load static %}
|
|
|
|
|
2021-02-27 23:18:27 +01:00
|
|
|
{% block non_login_content %}
|
2021-02-27 21:07:48 +01:00
|
|
|
|
|
|
|
{% if form.non_field_errors %}
|
|
|
|
{% for error in form.non_field_errors %}
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
{{ error }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<form method="post" action="">
|
|
|
|
{% csrf_token %}
|
|
|
|
|
|
|
|
<label for="id_username"
|
|
|
|
class="visually-hidden">
|
2021-03-03 14:58:46 +01:00
|
|
|
{% trans "E-mail" %}
|
2021-02-27 21:07:48 +01:00
|
|
|
</label>
|
|
|
|
<input type="text"
|
|
|
|
id="id_username"
|
|
|
|
name="login"
|
2021-03-03 10:36:18 +01:00
|
|
|
class="form-control mb-lg-2"
|
2021-03-04 09:09:11 +01:00
|
|
|
placeholder="{% trans "E-mail" %}"
|
2021-02-27 21:07:48 +01:00
|
|
|
required
|
|
|
|
autofocus>
|
|
|
|
|
|
|
|
<label for="id_password" class="visually-hidden">
|
|
|
|
{% trans "Password" %}
|
|
|
|
</label>
|
|
|
|
<input type="password"
|
|
|
|
id="id_password"
|
|
|
|
name="password"
|
2021-03-03 10:36:18 +01:00
|
|
|
class="form-control mb-lg-2"
|
2021-02-27 21:07:48 +01:00
|
|
|
placeholder="{% trans "Password" %}"
|
|
|
|
required>
|
|
|
|
|
2021-03-03 10:36:18 +01:00
|
|
|
<button class="w-100 mb-lg-2 btn btn-lg btn-primary"
|
2021-02-27 21:07:48 +01:00
|
|
|
type="submit">{% trans "Sign in" %}</button>
|
|
|
|
</form>
|
2021-03-03 10:36:18 +01:00
|
|
|
<a href="{% url "account_reset_password" %}"
|
|
|
|
class="w-100 btn btn-lg btn-outline-info">
|
|
|
|
{% trans "Forgot password?" %}
|
|
|
|
</a>
|
2021-02-27 21:07:48 +01:00
|
|
|
|
2022-11-25 00:16:32 +01:00
|
|
|
<div class="hr-text">
|
|
|
|
<span>{% trans "Or"|upper %}</span>
|
|
|
|
</div>
|
2021-02-27 21:07:48 +01:00
|
|
|
|
|
|
|
<a class="w-100 btn btn-lg btn-outline-success"
|
2021-02-27 23:18:27 +01:00
|
|
|
type="submit"
|
|
|
|
href="{% url "account_signup" %}">
|
|
|
|
{% trans "Become a member" %}
|
|
|
|
</a>
|
2021-03-03 10:36:18 +01:00
|
|
|
|
2021-02-28 23:03:32 +01:00
|
|
|
{% endblock %}
|