signup, reset and other account stuff

This commit is contained in:
vabene1111
2021-05-26 22:36:53 +02:00
parent a8d01f4d5a
commit a14e33973c
10 changed files with 72 additions and 15 deletions

View File

@@ -1,11 +1,26 @@
{% extends "base.html" %}
{% load crispy_forms_filters %}
{% load i18n %}
{% load account %}
{% block title %}{% trans 'Password Reset' %}{% endblock %}
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
{% block content %}
<span>{% trans 'Password reset is not implemented for the time being!' %}</span>
<h3>{% trans "Password Reset" %}</h3>
{% if user.is_authenticated %}
{% include "account/snippets/already_logged_in.html" %}
{% endif %}
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>
<form method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
{% csrf_token %}
{{ form | crispy}}
<input type="submit" class="btn btn-primary" value="{% trans 'Reset My Password' %}" />
<a class="btn btn-primary" href="{% url 'account_signup' %}">{% trans "Sign In" %}</a>
<a class="btn btn-success" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
</form>
{% endblock %}