-
-
Créer un compte
+
+ {% block content_title %}Connexion{% endblock %}
+
+
-
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/la_chariotte/accounts/templates/registration/password_reset_confirm.html b/la_chariotte/accounts/templates/registration/password_reset_confirm.html
index 79863a1..6f67cf3 100644
--- a/la_chariotte/accounts/templates/registration/password_reset_confirm.html
+++ b/la_chariotte/accounts/templates/registration/password_reset_confirm.html
@@ -1,25 +1,25 @@
{% extends 'base.html' %}
-
+{% load crispy_forms_tags %}
{% block title %}Nouveau mot de passe{% endblock %}
-
{% block content %}
-
- {% block content_title %}Nouveau mot de passe{% endblock %}
-
-
- {% if validlink %}
-
-
- {% else %}
-
-
Le lien de réinitialisation du mot de passe est invalide, probablement parce qu'il a déjà été utilisé.
- Veuillez demander une nouvelle réinitialisation.
-
- {% endif %}
-
-{% endblock %}
\ No newline at end of file
+
+ {% block content_title %}Nouveau mot de passe{% endblock %}
+
+
+ {% if validlink %}
+
+ {% else %}
+
+ Le lien de réinitialisation du mot de passe est invalide, probablement parce qu'il a déjà été utilisé.
+ Veuillez demander une nouvelle réinitialisation.
+
+ {% endif %}
+
+{% endblock %}
diff --git a/la_chariotte/accounts/templates/registration/password_reset_form.html b/la_chariotte/accounts/templates/registration/password_reset_form.html
index f14ecf6..2e66624 100644
--- a/la_chariotte/accounts/templates/registration/password_reset_form.html
+++ b/la_chariotte/accounts/templates/registration/password_reset_form.html
@@ -1,17 +1,17 @@
{% extends 'base.html' %}
-
+{% load crispy_forms_tags %}
{% block title %}Mot de passe oublié ?{% endblock %}
-
{% block content %}
-
- {% block content_title %}Mot de passe oublié ?{% endblock %}
-
-
-{% endblock %}
\ No newline at end of file
+
+ {% block content_title %}Mot de passe oublié ?{% endblock %}
+
+
+{% endblock %}
diff --git a/la_chariotte/accounts/templates/registration/signup.html b/la_chariotte/accounts/templates/registration/signup.html
index f67232d..3bc2efc 100644
--- a/la_chariotte/accounts/templates/registration/signup.html
+++ b/la_chariotte/accounts/templates/registration/signup.html
@@ -1,17 +1,9 @@
{% extends 'base.html' %}
-
+{% load crispy_forms_tags %}
{% block title %}Créer un compte{% endblock %}
-
{% block content %}
-
- {% block content_title %}Créer un compte{% endblock %}
-
-
-
-
-
-{% endblock %}
\ No newline at end of file
+
+ {% block content_title %}Créer un compte{% endblock %}
+
+
{% crispy form %}
+{% endblock %}
diff --git a/la_chariotte/settings.py b/la_chariotte/settings.py
index 284f5b9..844810c 100644
--- a/la_chariotte/settings.py
+++ b/la_chariotte/settings.py
@@ -34,6 +34,8 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
+ "crispy_forms",
+ "crispy_bulma",
]
MIDDLEWARE = [
@@ -69,6 +71,9 @@ TEMPLATES = [
},
]
+CRISPY_ALLOWED_TEMPLATE_PACKS = ("bulma",)
+CRISPY_TEMPLATE_PACK = "bulma"
+
WSGI_APPLICATION = "la_chariotte.wsgi.application"
diff --git a/pyproject.toml b/pyproject.toml
index 577cfad..e4d7dc9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,6 +17,8 @@ dependencies = [
"django-weasyprint==1.1.0.post1", # see below
"weasyprint==52.5", # pin weasyprint to not depend on latest libpango
"html2text>=2020.1.16",
+ "django-crispy-forms>=2.0,<3",
+ "crispy-bulma>=0.11.0,<1",
]
[tool.setuptools]