From 27a411fe69cd3d8f669acb76b56d2390efc86deb Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 9 Feb 2020 17:45:22 +0100 Subject: Password change --- templates/login.html | 1 + templates/passwd.html | 37 +++++++++++++++++++++++++++++++ templates/profile.html | 59 +++++++++++++++++++++++++------------------------- 3 files changed, 67 insertions(+), 30 deletions(-) create mode 100644 templates/passwd.html (limited to 'templates') diff --git a/templates/login.html b/templates/login.html index 0801884..ed4d358 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,6 +1,7 @@ {{define "title"}}{{end}} {{define "body"}} +

S'identifier

{{if .ErrorMessage}} diff --git a/templates/passwd.html b/templates/passwd.html new file mode 100644 index 0000000..7dffcb8 --- /dev/null +++ b/templates/passwd.html @@ -0,0 +1,37 @@ +{{define "title"}}Mot de passe |{{end}} + +{{define "body"}} +

Modifier mon mot de passe

+ + {{if .ErrorMessage}} +
Impossible d'effectuer la modification. +
{{ .ErrorMessage }}
+
+ {{end}} + {{if .Success}} +
+ Nouveau mot de passe enregistré. +
+ Retour + {{else}} + +
+ + +
+
+ + +
+ {{if .NoMatchError}} +
+ Les deux mots de passe entrés ne correspondent pas. +
+ {{end}} +
+ + Annuler +
+
+ {{end}} +{{end}} diff --git a/templates/profile.html b/templates/profile.html index 24556fa..d2ff632 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -3,43 +3,42 @@ {{define "body"}}

Modifier mon profil

-
{{if .ErrorMessage}} -
Impossible de se connecter. +
Impossible d'effectuer la modification.
{{ .ErrorMessage }}
{{end}} {{if .Success}}
+ Profil enregistré. +
+ Retour + {{else}} + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
- Profil enregistré. - Retour + + Annuler
-
+
{{end}} -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - Annuler -
- {{end}} -- cgit v1.2.3