From 91ff8a16cdc9e42ea021dc0e69e577cdc9335fc1 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Thu, 25 Aug 2016 13:03:41 -0700 Subject: [PATCH] web/templates: port templates from v1 --- web/templates/approval.html | 42 +++++++ web/templates/footer.html | 3 + web/templates/header.html | 240 ++++++++++++++++++++++++++++++++++++ web/templates/login.html | 22 ++++ web/templates/password.html | 31 +++++ 5 files changed, 338 insertions(+) create mode 100644 web/templates/approval.html create mode 100644 web/templates/footer.html create mode 100644 web/templates/header.html create mode 100644 web/templates/login.html create mode 100644 web/templates/password.html diff --git a/web/templates/approval.html b/web/templates/approval.html new file mode 100644 index 00000000..c73a522e --- /dev/null +++ b/web/templates/approval.html @@ -0,0 +1,42 @@ +{{ template "header.html" . }} + +
+

Grant Access

+ +
+
+
{{ .Client }} would like to:
+ {{ range $scope := .Scopes }} +
  • +
    + {{ $scope }} +
    +
  • + {{ end }} +
    +
    + +
    +
    +
    + + + +
    +
    +
    +
    + + + +
    +
    +
    + +
    + +{{ template "footer.html" . }} diff --git a/web/templates/footer.html b/web/templates/footer.html new file mode 100644 index 00000000..5b6e2d65 --- /dev/null +++ b/web/templates/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/web/templates/header.html b/web/templates/header.html new file mode 100644 index 00000000..cadb078d --- /dev/null +++ b/web/templates/header.html @@ -0,0 +1,240 @@ + + + + + + {{ .Issuer }} + + + + + + + +
    + diff --git a/web/templates/login.html b/web/templates/login.html new file mode 100644 index 00000000..d43b5142 --- /dev/null +++ b/web/templates/login.html @@ -0,0 +1,22 @@ +{{ template "header.html" . }} + +
    +

    Log in to {{ .Issuer }}

    + +
    + {{ range $c := .Connectors }} + + {{ end }} +
    + +
    + + +{{ template "footer.html" . }} diff --git a/web/templates/password.html b/web/templates/password.html new file mode 100644 index 00000000..89f833fc --- /dev/null +++ b/web/templates/password.html @@ -0,0 +1,31 @@ +{{ template "header.html" . }} + +
    +

    Log in to Your Account

    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    + + + {{ if .Invalid }} +
    + Invalid username and password. +
    + {{ end }} + + + +
    +
    + +{{ template "footer.html" . }}