From 3b49837d167e8770f1054457e172c36109169e51 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Mon, 31 Dec 2018 09:05:29 -0500 Subject: Add password change feature --- templates/index.tmpl | 2 +- templates/login.tmpl | 5 +++-- templates/password.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 templates/password.tmpl (limited to 'templates') diff --git a/templates/index.tmpl b/templates/index.tmpl index 8f6a3b9..d72d562 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -18,7 +18,7 @@ button:hover {background-color: #1967be; border-color: #1862b5} -

Logout

+

Changer le mot de passe Logout

{{.Id}} {{.Created}}

diff --git a/templates/login.tmpl b/templates/login.tmpl index a78fdc1..8854695 100644 --- a/templates/login.tmpl +++ b/templates/login.tmpl @@ -9,7 +9,8 @@ body{margin: 0 auto; width: 400px; padding-top: 10em; font-family: "Source Sans form > hr{border: none; border-top: 1px solid #e6e6e6; margin: 1.3em 0;} form > h4{font-weight: 300; font-size: 19px; margin-bottom: 0} label {font-weight: bold; text-align: right;} form > div {display: grid; grid-template-columns: 2fr 5fr; grid-gap: 1em 1em; align-items: center;} -form .alert { background-color: #ff0039; grid-column: 1 / 3; color: white; padding: 0.8em 1em} +form .danger { background-color: #f8d7da; grid-column: 1 / 3; color: #721c24; padding: 0.8em 1em} +form .success { background-color: #d4edda; grid-column: 1 / 3; color: #155724; padding: 0.8em 1em} input, button {font-size: inherit; font-family: inherit; line-height: inherit; padding: 0.8em 1em; border-radius: 0} input {border: 1px solid #cccccc; transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s} input:focus {border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)} @@ -29,7 +30,7 @@ button:hover {background-color: #1967be; border-color: #1862b5} - {{ if .Flash }}
{{.Flash}}
{{end}} + {{ if .Flash }}
{{.Flash}}
{{end}} diff --git a/templates/password.tmpl b/templates/password.tmpl new file mode 100644 index 0000000..8b5e8cf --- /dev/null +++ b/templates/password.tmpl @@ -0,0 +1,40 @@ + + + + + + + + + + +
+

Mot de passe

+
+
+ + + + + + + {{ if .Value }}
{{.Value}}
{{end}} + +
+
+
+ + + -- cgit v1.2.3-70-g09d2