From bd6dfe570e9ec4bc24236f0d64f9b4ee104f191b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 5 Mar 2019 07:45:08 +0100 Subject: [PATCH] Moar icons + custom password change views --- friends_map/settings.py | 2 +- map/templates/registration/login.html | 4 ++-- map/templates/registration/password_change_done.html | 12 ++++++++++++ map/templates/registration/password_change_form.html | 9 +++++++++ map/templates/registration/signup.html | 2 +- 5 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 map/templates/registration/password_change_done.html create mode 100644 map/templates/registration/password_change_form.html diff --git a/friends_map/settings.py b/friends_map/settings.py index c5f66eb..85756bd 100644 --- a/friends_map/settings.py +++ b/friends_map/settings.py @@ -45,13 +45,13 @@ if DEBUG: # Application definition INSTALLED_APPS = [ + 'map', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'map', 'crispy_forms', ] diff --git a/map/templates/registration/login.html b/map/templates/registration/login.html index 8948718..704afee 100644 --- a/map/templates/registration/login.html +++ b/map/templates/registration/login.html @@ -8,7 +8,7 @@
{% csrf_token %} {{ form|crispy }} - - I don't have an account + + I don't have an account
{% endblock %} diff --git a/map/templates/registration/password_change_done.html b/map/templates/registration/password_change_done.html new file mode 100644 index 0000000..2b06024 --- /dev/null +++ b/map/templates/registration/password_change_done.html @@ -0,0 +1,12 @@ +{% extends 'map/base.html' %} +{% load crispy_forms_filters %} + +{% block title %}Password change successful{% endblock %} +{% block h1 %}Password change successful{% endblock %} + +{% block content %} +
+ Your password was changed. +
+ Go to map +{% endblock %} diff --git a/map/templates/registration/password_change_form.html b/map/templates/registration/password_change_form.html new file mode 100644 index 0000000..89f1279 --- /dev/null +++ b/map/templates/registration/password_change_form.html @@ -0,0 +1,9 @@ +{% extends 'map/base_change.html' %} +{% load crispy_forms_filters %} + +{% block title %}Change your password{% endblock %} +{% block h1 %}Change your password{% endblock %} + +{% block form-buttons %} + +{% endblock %} diff --git a/map/templates/registration/signup.html b/map/templates/registration/signup.html index a37efed..73ef4be 100644 --- a/map/templates/registration/signup.html +++ b/map/templates/registration/signup.html @@ -41,7 +41,7 @@ {% csrf_token %} {{ form|crispy }} {% block form-buttons %} - + {% endblock %} {% endif %}