From fc2455cdbf8c64c98a8f7104ae7e7acdcff1337c Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Fri, 8 Jun 2018 08:01:06 +0200 Subject: Go impl of pwman, first draft --- templates/change_ssh.html | 32 ++++++++++++++++++++++++++++++++ templates/changepw.html | 28 ++++++++++++++++++++++++++++ templates/index.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ templates/layout/base.html | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 templates/change_ssh.html create mode 100644 templates/changepw.html create mode 100644 templates/index.html create mode 100644 templates/layout/base.html (limited to 'templates') diff --git a/templates/change_ssh.html b/templates/change_ssh.html new file mode 100644 index 0000000..96231a7 --- /dev/null +++ b/templates/change_ssh.html @@ -0,0 +1,32 @@ + +{{ define "content" }} +
+

Your existing SSH keys

+ +
+
+ {{ $csrf }} +

Paste your SSH public keys (one key per line):

+ + +
+ +
+ Back +
+{{ end }} diff --git a/templates/changepw.html b/templates/changepw.html new file mode 100644 index 0000000..a7c1dc6 --- /dev/null +++ b/templates/changepw.html @@ -0,0 +1,28 @@ +{{ define "title" }}Change {{.Pwtype}} password{{ end }} + +{{ define "content" }} +
+

Change {{ .Pwtype }} password

+

When thinking of a new password you need to remember to use:

+ +
+ {{ .CsrfField }} + + +
+ +
+
+ +
+ Back +
+{{ end }} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..218ffe2 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,46 @@ +{{ define "content" }} +
+

SSO Password Manager

+{{with .User}} +

+ Hello {{.DisplayName}},
+ Welcome to the single sign on password manager site. +

+

Your usernames

+
+
SSO:
+
{{ .UserName }}
+
eduroam:
+
{{ .UserName }}/ppp@NORDU.NET
+
+ +

Available actions

+ +

+ Log out +

+{{ end }} +
+{{ end }} diff --git a/templates/layout/base.html b/templates/layout/base.html new file mode 100644 index 0000000..f041321 --- /dev/null +++ b/templates/layout/base.html @@ -0,0 +1,40 @@ +{{define "base"}} + + + + + + {{block "title" .}}SSO Password Manager{{end}} + + + + +
+
+
+ NORDUnet Nordic Gateway for Research and Education +
+
+
+ +
+ {{if .Flash }} +
+
+ {{ .Flash }} +
+
+ {{ end }} + {{block "content" .}} {{ end }} +
+
+ +
+ + +{{end}} -- cgit v1.1