From 8b54b08064d926ed6a93af56abbbcd12e73f4462 Mon Sep 17 00:00:00 2001 From: Shubham Dhama Date: Wed, 14 Mar 2018 23:20:55 +0530 Subject: [PATCH] org settings: Restructure org-settings-admin template. This restructures the organization-settings-admin template into different subsections. With this, we can easily limit the scope of event handlers and selectors within their subsection to which are applied. There will be no change in UI because of this. --- .../organization-settings-admin.handlebars | 329 +++++++++--------- 1 file changed, 170 insertions(+), 159 deletions(-) diff --git a/static/templates/settings/organization-settings-admin.handlebars b/static/templates/settings/organization-settings-admin.handlebars index a82265d91e..a44d5b87c9 100644 --- a/static/templates/settings/organization-settings-admin.handlebars +++ b/static/templates/settings/organization-settings-admin.handlebars @@ -12,107 +12,115 @@
-

{{t "Message editing" }}

-
-
- - +
+
+

{{t "Message editing" }}

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

{{t "Message feed" }}

-
- {{#if false}} -
- - +
+
+

{{t "Message feed" }}

- {{/if}} +
+ {{#if false}} +
+ + +
+ {{/if}} -
- - -
+
+ + +
- {{#if server_inline_image_preview}} -
- - -
- {{/if}} + {{#if server_inline_image_preview}} +
+ + +
+ {{/if}} - {{#if server_inline_url_embed_preview}} -
- - + {{#if server_inline_url_embed_preview}} +
+ + +
+ {{/if}}
- {{/if}}
{{#if is_admin }} @@ -123,27 +131,31 @@
{{/if}} -

{{t "Language & notifications" }}

+
+
+

{{t "Language & notifications" }}

+
+
+
+ + +
+
+ + +
+
-
-
- - -
-
- - -
{{#if is_admin }}
{{/if}} -
-
- - {{#if is_admin }} - {{t "[Disable]" }} - {{/if}} -
- -
- - {{#if is_admin }} - {{#if new_user_bot_configured }} - +
+ + {{#if is_admin }} + {{t "[Disable]" }} {{/if}} - {{/if}} -