From efbb895ebe33327630195ac52f10bd3d85bbae00 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Wed, 15 Mar 2017 22:39:38 +0000 Subject: Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270) --- templates/admin/auth/edit.tmpl | 360 ++++++++++++++++++++-------------------- templates/admin/auth/list.tmpl | 72 ++++---- templates/admin/auth/new.tmpl | 362 ++++++++++++++++++++--------------------- 3 files changed, 391 insertions(+), 403 deletions(-) (limited to 'templates/admin/auth') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 84b62f6e87..ea5104b79f 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -1,199 +1,195 @@ {{template "base/head" .}}
+ {{template "admin/navbar" .}}
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.edit"}} -

-
-
- {{.CsrfTokenHtml}} - -
- - - {{.Source.TypeName}} -
-
- - -
- - - {{if or .Source.IsLDAP .Source.IsDLDAP}} - {{ $cfg:=.Source.LDAP }} -
- - -
-
- - -
-
- - -
- {{if .Source.IsLDAP}} -
- - -
- -
- - -

{{.i18n.Tr "admin.auths.bind_password_helper"}}

-
-
- - -
- {{end}} - {{if .Source.IsDLDAP}} -
- - -
- {{end}} -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- {{if .Source.IsLDAP}} -
-
- - -
-
- {{end}} - {{end}} - - - {{if .Source.IsSMTP}} - {{ $cfg:=.Source.SMTP }} -
- - -
-
- - -
-
- - -
-
- - -

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

-
- {{end}} - - - {{if .Source.IsPAM}} - {{ $cfg:=.Source.PAM }} -
- - -
- {{end}} - - - {{if .Source.IsOAuth2}} - {{ $cfg:=.Source.OAuth2 }} -
- - -
-
- - -
-
- - -
- {{end}} + {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.edit"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + + {{.Source.TypeName}} +
+
+ + +
-
-
- - + + {{if or .Source.IsLDAP .Source.IsDLDAP}} + {{ $cfg:=.Source.LDAP }} +
+ + -
-
- - -
+
+
+ + +
+
+ + +
+ {{if .Source.IsLDAP}} +
+ + +
+ +
+ + +

{{.i18n.Tr "admin.auths.bind_password_helper"}}

+
+
+ + +
+ {{end}} + {{if .Source.IsDLDAP}} +
+ +
+ {{end}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {{if .Source.IsLDAP}}
- - + +
+ {{end}} + {{end}} -
- -
{{.i18n.Tr "admin.auths.delete"}}
+ + {{if .Source.IsSMTP}} + {{ $cfg:=.Source.SMTP }} +
+ + +
+
+ + +
+
+ + +
+
+ + +

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+
+ {{end}} + + + {{if .Source.IsPAM}} + {{ $cfg:=.Source.PAM }} +
+ + +
+ {{end}} + + + {{if .Source.IsOAuth2}} + {{ $cfg:=.Source.OAuth2 }} +
+ + - +
+
+ + +
+
+ + +
+ {{end}} + +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+ +
{{.i18n.Tr "admin.auths.delete"}}
-
+
diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 58bdc66b2c..4e8fb1ea82 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -1,45 +1,41 @@ {{template "base/head" .}}
+ {{template "admin/navbar" .}}
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) - -

-
- - - - - - - - - - - - - - {{range .Sources}} - - - - - - - - - - {{end}} - -
ID{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeName}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
-
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) + +

+
+ + + + + + + + + + + + + + {{range .Sources}} + + + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeName}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 24257a1b65..59990fc37e 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -1,204 +1,200 @@ {{template "base/head" .}}
+ {{template "admin/navbar" .}}
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.new"}} -

-
-
- {{.CsrfTokenHtml}} - -
- - -
-
- - + {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.new"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + +
+
+ + +
- -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- - -

{{.i18n.Tr "admin.auths.bind_password_helper"}}

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +

{{.i18n.Tr "admin.auths.bind_password_helper"}}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
- -
-
- - -
-
- - -
-
- - -
-
- - -

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+
+
- -
- - -
- - -
-
- - -
-
- - -
-
- - -
-
+ +
+ + +
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - + +
+
+ + +
+
+ + +
+
+ + +
+
-
- -
- +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
-

- {{.i18n.Tr "admin.auths.tips"}} -

-
-
GMail Settings:
-

Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true

-
OAuth GitHub:
-

{{.i18n.Tr "admin.auths.tip.github"}}

+
+
-
+ +
+ +

+ {{.i18n.Tr "admin.auths.tips"}} +

+
+
GMail Settings:
+

Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true

+
OAuth GitHub:
+

{{.i18n.Tr "admin.auths.tip.github"}}

-- cgit v1.2.3