From ebb7553cc87b5a2504edc8e06ee12375fd925029 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 9 Feb 2020 16:46:26 +0100 Subject: Implement logout --- templates/home.html | 15 +++++++++++++-- templates/layout.html | 10 +++++++--- templates/login.html | 21 +++++++++++++++------ 3 files changed, 35 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/home.html b/templates/home.html index 0b39e11..6a11af3 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,7 +1,18 @@ {{define "title"}}Guichet{{end}} {{define "body"}} -

Guichet

+
+ Bienvenue, {{ .Username }} ! +
+ +
+
+ Gérer mon compte +
+ +
-Welcome, {{ .Username }}! {{end}} diff --git a/templates/layout.html b/templates/layout.html index 28cd262..5f4a315 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -2,12 +2,16 @@ - {{template "title"}} + + - + + {{template "title"}} Guichet -
+
+

Guichet Deuxfleurs💮💮

+
{{template "body" .}}
diff --git a/templates/login.html b/templates/login.html index 80642ea..0801884 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,12 +1,21 @@ -{{define "title"}}Log in{{end}} +{{define "title"}}{{end}} {{define "body"}} -

Log in

-
{{ .ErrorMessage }}
- Username:
- Password:
- + {{if .ErrorMessage}} +
Impossible de se connecter. +
{{ .ErrorMessage }}
+
+ {{end}} +
+ + +
+
+ + +
+
{{end}} -- cgit v1.2.3