From 97fff5d60651c4bda0d77d98788d41fde8f04f80 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Aug 2018 14:31:38 +0200 Subject: [PATCH] Formulaire pour le changement de mot de passe --- users/templates/users/user.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/users/templates/users/user.html b/users/templates/users/user.html index ebc637b8..dbf732fa 100644 --- a/users/templates/users/user.html +++ b/users/templates/users/user.html @@ -57,6 +57,23 @@ function submitBday() {
{% csrf_token %} + {% if action_name == 'Change the password' %} +
+ {{ userform.selfpasswd.label_tag }} + {% render_field userform.selfpasswd class="form-control" requiered=True %} +
+
+ {{ userform.passwd1.label_tag }} + {% render_field userform.passwd1 class="form-control" requiered=True %} +
+
+ {{ userform.passwd2.label_tag }} + {% render_field userform.passwd2 class="form-control" requiered=True %} +
+ + + {% else %} +

Informations générales

{% if action_name == 'Create a user' %} @@ -194,6 +211,8 @@ function submitBday() { {% endif %} + + {% endif %}