From 49193bebd283322bb997b7aed09fc7818a881af9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 28 Sep 2014 01:38:25 -0400 Subject: UI: Confirmation box --- templates/.VERSION | 2 +- templates/admin/auth/edit.tmpl | 9 ++++++++- templates/admin/user/edit.tmpl | 11 +++++++++-- templates/org/settings/delete.tmpl | 11 +++++++++-- templates/org/settings/options.tmpl | 9 ++++++++- templates/org/team/new.tmpl | 9 ++++++++- templates/repo/home.tmpl | 2 +- templates/repo/settings/options.tmpl | 9 ++++++++- templates/user/settings/delete.tmpl | 11 +++++++++-- templates/user/settings/profile.tmpl | 4 ++-- 10 files changed, 63 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 59eee24b..cea419d7 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.5.4.0926 Beta \ No newline at end of file +0.5.4.0927 Beta \ No newline at end of file diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 9697b773..77d28f62 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -100,7 +100,14 @@       - + + +
+

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

+

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

+
+ +
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 3924afec..1d4cf806 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -30,7 +30,7 @@
- +
@@ -65,8 +65,15 @@       - +
+
+

{{.i18n.Tr "settings.delete_account_title"}}

+

{{.i18n.Tr "settings.delete_account_desc"}}

+
+ + +
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl index 8b698e0d..a929fabf 100644 --- a/templates/org/settings/delete.tmpl +++ b/templates/org/settings/delete.tmpl @@ -12,13 +12,20 @@

{{.i18n.Tr "org.settings.delete_account"}}

{{.i18n.Tr "org.settings.delete_prompt" | Str2html}} -
+ {{.CsrfTokenHtml}}

- +

+
+

{{.i18n.Tr "org.settings.delete_org_title"}}

+

{{.i18n.Tr "org.settings.delete_org_desc"}}

+
+ + +
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 793b9c29..1ed7acb5 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -19,6 +19,13 @@ +
+

{{.i18n.Tr "org.settings.change_orgname"}}

+

{{.i18n.Tr "org.settings.change_orgname_desc"}}

+
+ + +
@@ -45,7 +52,7 @@
- +
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index f9632fcf..89afd84f 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -53,7 +53,14 @@ {{if not (eq .Team.LowerName "owners")}}       - + +
+

{{.i18n.Tr "org.teams.delete_team_title"}}

+

{{.i18n.Tr "org.teams.delete_team_desc"}}

+
+ + +
{{end}} {{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 32fbf582..aa303aaa 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -5,7 +5,7 @@

- {{.Repository.DescriptionHtml}} + {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}

diff --git a/templates/user/settings/delete.tmpl b/templates/user/settings/delete.tmpl index cc6bf273..a6d3663d 100644 --- a/templates/user/settings/delete.tmpl +++ b/templates/user/settings/delete.tmpl @@ -11,13 +11,20 @@

{{.i18n.Tr "settings.delete_account"}}

{{.i18n.Tr "settings.delete_prompt" | Str2html}} -
+ {{.CsrfTokenHtml}}

- +

+
+

{{.i18n.Tr "settings.delete_account_title"}}

+

{{.i18n.Tr "settings.delete_account_desc"}}

+
+ + +
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 4d225177..5338d295 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -26,7 +26,7 @@

{{.i18n.Tr "settings.change_username"}}

{{.i18n.Tr "settings.change_username_desc"}}


- +
@@ -51,7 +51,7 @@
- +
-- cgit v1.2.3