From 602862ba6ef162a0d80389ef98bd6eb03734d04c Mon Sep 17 00:00:00 2001 From: renzon Date: Wed, 27 May 2020 15:12:24 -0300 Subject: [PATCH] =?UTF-8?q?Alterado=20formul=C3=A1rio=20de=20Reset=20de=20?= =?UTF-8?q?senha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit parte de #1070 --- pypro/base/templates/registration/login.html | 2 +- .../registration/password_reset_form.html | 28 +++++++++++++++++++ pypro/settings.py | 8 +++--- 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 pypro/base/templates/registration/password_reset_form.html diff --git a/pypro/base/templates/registration/login.html b/pypro/base/templates/registration/login.html index 58ed0d90..c5eaa8d8 100755 --- a/pypro/base/templates/registration/login.html +++ b/pypro/base/templates/registration/login.html @@ -2,7 +2,7 @@ {% load static %} {% block title %}Python Pro - Login{% endblock title %} {% block body %} -
+
diff --git a/pypro/base/templates/registration/password_reset_form.html b/pypro/base/templates/registration/password_reset_form.html new file mode 100644 index 00000000..685aedb3 --- /dev/null +++ b/pypro/base/templates/registration/password_reset_form.html @@ -0,0 +1,28 @@ +{% extends 'base/base.html' %} +{% load i18n static %} + + +{% block title %}Formulário de Recuperação de Senha{% endblock %} + +{% block body %} +
+
+
+

{{ title }}

+

{% trans 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %}

+ +
{% csrf_token %} +
+
+ {{ form.email.errors }} + + {{ form.email }} +
+ +
+
+
+
+
+ +{% endblock %} diff --git a/pypro/settings.py b/pypro/settings.py index 9243dd90..28448db2 100644 --- a/pypro/settings.py +++ b/pypro/settings.py @@ -41,6 +41,10 @@ # Application definition INSTALLED_APPS = [ + 'pypro.base', + 'pypro.turmas', + 'pypro.aperitivos', + 'pypro.modulos', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -48,10 +52,6 @@ 'django.contrib.messages', 'collectfast', 'django.contrib.staticfiles', - 'pypro.base', - 'pypro.turmas', - 'pypro.aperitivos', - 'pypro.modulos', 'ordered_model', 'django_extensions', ]