From 2ee0c61e62a47a620bf0e8f55c896616062008c1 Mon Sep 17 00:00:00 2001 From: Rémy Boulanouar Date: Sat, 28 Jan 2017 04:02:27 +0100 Subject: Setting orgs (#3587) * Implement organizations listing in setting and allow user to create new organization. * Implement organizations listing in setting and allow user to create new organization. * Add space remove by mistake * Remove unused part of the template * Update display and behavior according to @Unknown remarks --- templates/user/settings/navbar.tmpl | 3 +++ templates/user/settings/organizations.tmpl | 37 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 templates/user/settings/organizations.tmpl (limited to 'templates') diff --git a/templates/user/settings/navbar.tmpl b/templates/user/settings/navbar.tmpl index 5166bafa..4293fed0 100644 --- a/templates/user/settings/navbar.tmpl +++ b/templates/user/settings/navbar.tmpl @@ -19,6 +19,9 @@ {{.i18n.Tr "settings.applications"}} + + {{.i18n.Tr "settings.orgs"}} + {{.i18n.Tr "settings.delete"}} diff --git a/templates/user/settings/organizations.tmpl b/templates/user/settings/organizations.tmpl new file mode 100644 index 00000000..64bdf9e0 --- /dev/null +++ b/templates/user/settings/organizations.tmpl @@ -0,0 +1,37 @@ +{{template "base/head" .}} +
+
+
+ {{template "user/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "settings.orgs"}} + +

+
+ {{if .Orgs}} +
+ {{range .Orgs}} +
+
+
Leave
+
+ +
+ {{.Name}} +
+
+ {{end}} +
+ {{else}} + {{.i18n.Tr "settings.orgs_none"}} + {{end}} +
+
+
+
+
+{{template "base/footer" .}} -- cgit v1.2.3