diff --git a/web/templates/settings/group_setting_value_pill_input.hbs b/web/templates/settings/group_setting_value_pill_input.hbs new file mode 100644 index 0000000000..b4b8371f89 --- /dev/null +++ b/web/templates/settings/group_setting_value_pill_input.hbs @@ -0,0 +1,8 @@ +
+ +
+
+ {{~! Squash whitespace so that placeholder is displayed when empty. ~}} +
+
+
diff --git a/web/templates/settings/organization_permissions_admin.hbs b/web/templates/settings/organization_permissions_admin.hbs index 666eff06e5..cc353f326c 100644 --- a/web/templates/settings/organization_permissions_admin.hbs +++ b/web/templates/settings/organization_permissions_admin.hbs @@ -23,15 +23,9 @@ -
- -
-
- {{~! Squash whitespace so that placeholder is displayed when empty. ~}} -
-
-
+ {{> group_setting_value_pill_input + setting_name="realm_create_multiuse_invite_group" + label=(t 'Who can create reusable invitation links')}}
@@ -73,15 +67,9 @@ {{> settings_save_discard_widget section_name="stream-permissions" }}
-
- -
-
- {{~! Squash whitespace so that placeholder is displayed when empty. ~}} -
-
-
+ {{> group_setting_value_pill_input + setting_name="realm_can_create_public_channel_group" + label=(t 'Who can create public channels')}} {{> upgrade_tip_widget }} {{> settings_checkbox @@ -97,15 +85,9 @@ label=(t 'Who can create web-public channels') value_type="number"}} -
- -
-
- {{~! Squash whitespace so that placeholder is displayed when empty. ~}} -
-
-
+ {{> group_setting_value_pill_input + setting_name="realm_can_create_private_channel_group" + label=(t 'Who can create private channels')}}
@@ -349,25 +331,13 @@
-
- -
-
- {{~! Squash whitespace so that placeholder is displayed when empty. ~}} -
-
-
+ {{> group_setting_value_pill_input + setting_name="realm_can_create_groups" + label=(t 'Who can create user groups')}} -
- -
-
- {{~! Squash whitespace so that placeholder is displayed when empty. ~}} -
-
-
+ {{> group_setting_value_pill_input + setting_name="realm_can_manage_all_groups" + label=(t 'Who can manage user groups')}} {{> ../dropdown_widget_with_label widget_name="realm_can_add_custom_emoji_group"