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
|
|
|
<img class="mb-4" src="https://new.data.coop/static/img/logo_da.svg" alt=""
|
|
|
|
width="260" height="160">
|
2021-02-27 23:18:27 +01:00
|
|
|
{# <h1 class="h3 mb-3 fw-normal">{% trans "" %}</h1>#}
|
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">
|
|
|
|
{% trans "Username/e-mail" %}
|
|
|
|
</label>
|
|
|
|
<input type="text"
|
|
|
|
id="id_username"
|
|
|
|
name="login"
|
|
|
|
class="form-control"
|
|
|
|
placeholder="{% trans "Username/e-mail" %}"
|
|
|
|
required
|
|
|
|
autofocus>
|
|
|
|
|
|
|
|
<label for="id_password" class="visually-hidden">
|
|
|
|
{% trans "Password" %}
|
|
|
|
</label>
|
|
|
|
<input type="password"
|
|
|
|
id="id_password"
|
|
|
|
name="password"
|
|
|
|
class="form-control"
|
|
|
|
placeholder="{% trans "Password" %}"
|
|
|
|
required>
|
|
|
|
|
|
|
|
<button class="w-100 btn btn-lg btn-primary"
|
|
|
|
type="submit">{% trans "Sign in" %}</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<hr class="hr-text" data-content="OR">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
{% endblock %}
|