From 08096a4b98c37c06bf1496f02bce85ed91ea79b5 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 16 May 2024 23:16:13 +0100 Subject: [PATCH] Move manage apps and users forms into separate templates --- pages/manage-apps-create.go.html | 72 ++++++++++++++ pages/manage-apps-edit.go.html | 80 ++++++++++++++++ pages/manage-apps.go.html | 159 +++++++++---------------------- pages/manage-users-edit.go.html | 38 ++++++++ pages/manage-users.go.html | 126 ++++++++++-------------- server/manage-apps.go | 19 ++++ server/server.go | 1 + 7 files changed, 305 insertions(+), 190 deletions(-) create mode 100644 pages/manage-apps-create.go.html create mode 100644 pages/manage-apps-edit.go.html create mode 100644 pages/manage-users-edit.go.html diff --git a/pages/manage-apps-create.go.html b/pages/manage-apps-create.go.html new file mode 100644 index 0000000..95d14c7 --- /dev/null +++ b/pages/manage-apps-create.go.html @@ -0,0 +1,72 @@ + + + + {{.ServiceName}} + + + + + +{{template "header.go.html" .}} +
+
+ +
+ +

Create Client Application

+
+ + +
+ + +
+
+ + +
+ {{if .IsAdmin}} +
+ + +
+ {{end}} +
+ +
+ {{if .IsAdmin}} +
+ +
+ {{end}} +
+ +
+ +
+
+ + diff --git a/pages/manage-apps-edit.go.html b/pages/manage-apps-edit.go.html new file mode 100644 index 0000000..50e30a8 --- /dev/null +++ b/pages/manage-apps-edit.go.html @@ -0,0 +1,80 @@ + + + + {{.ServiceName}} + + + + + +{{template "header.go.html" .}} +
+
+ +
+ +

Edit Client Application

+
+ + + +
+ +
+
+ + +
+
+ + +
+ {{if .IsAdmin}} +
+ + +
+ {{end}} +
+ +
+ {{if .IsAdmin}} +
+ +
+ {{end}} +
+ +
+ +
+
+ + +
+
+ + diff --git a/pages/manage-apps.go.html b/pages/manage-apps.go.html index 31abb87..7a92a65 100644 --- a/pages/manage-apps.go.html +++ b/pages/manage-apps.go.html @@ -2,7 +2,7 @@ {{.ServiceName}} - +