Преглед на файлове

Ticket #4953 - Contexts: Add possibility for an author/admins to enable/disable tabs. Usage in Spaces.

AntonLV преди 1 година
родител
ревизия
7599b07998

+ 8 - 0
modules/boonex/russian/data/langs/bx_spaces/ru.xml

@@ -18,6 +18,7 @@
     <string name="_bx_spaces_form_profile_display_add"><![CDATA[Добавление пространства]]></string>
     <string name="_bx_spaces_form_profile_display_edit"><![CDATA[Редактирование пространства]]></string>
     <string name="_bx_spaces_form_profile_display_edit_cover"><![CDATA[Редактирование обложки]]></string>
+    <string name="_bx_spaces_form_profile_display_edit_settings"><![CDATA[Редактирование настроек]]></string>
     <string name="_bx_spaces_form_profile_display_delete"><![CDATA[Удаление пространства]]></string>
     <string name="_bx_spaces_form_profile_display_view"><![CDATA[Просмотр пространства]]></string>
     <string name="_bx_spaces_form_profile_display_view_full"><![CDATA[Полный просмотр пространства]]></string>
@@ -49,6 +50,8 @@
     <string name="_bx_spaces_form_profile_input_picture_err"><![CDATA[Необходима картинка пространства.]]></string>
     <string name="_bx_spaces_form_profile_input_sys_cover"><![CDATA[Картинка обложки]]></string>
     <string name="_bx_spaces_form_profile_input_cover"><![CDATA[Загрузить новую картинку обложки]]></string>
+    <string name="_bx_spaces_form_profile_input_sys_stg_tabs"><![CDATA[Скрыть вкладки]]></string>
+    <string name="_bx_spaces_form_profile_input_stg_tabs"><![CDATA[Скрыть вкладки]]></string>
     <string name="_bx_spaces_form_profile_input_sys_delete_confirm"><![CDATA[Подтверждение на удаление]]></string>
     <string name="_bx_spaces_form_profile_input_delete_confirm"><![CDATA[Я уверен, что хочу удалить эту пространство]]></string>
     <string name="_bx_spaces_form_profile_input_delete_confirm_info"><![CDATA[Это действие не может быть отменено.]]></string>
@@ -94,6 +97,8 @@
 	<string name="_bx_spaces_page_title_edit_profile"><![CDATA[Редактировать пространство]]></string>
 	<string name="_bx_spaces_page_title_sys_edit_profile_cover"><![CDATA[Редактировать обложку пространства]]></string>
 	<string name="_bx_spaces_page_title_edit_profile_cover"><![CDATA[Редактировать обложку]]></string>
+        <string name="_bx_spaces_page_title_sys_edit_profile_settings"><![CDATA[Редактировать настройки пространства]]></string>
+	<string name="_bx_spaces_page_title_edit_profile_settings"><![CDATA[Редактировать настройки]]></string>
 	<string name="_bx_spaces_page_title_sys_delete_profile"><![CDATA[Удалить пространство]]></string>
 	<string name="_bx_spaces_page_title_delete_profile"><![CDATA[Удалить пространство]]></string>
         <string name="_bx_spaces_page_title_sys_join_profile"><![CDATA[Присоединиться к пространству]]></string>
@@ -145,6 +150,7 @@
     <string name="_bx_spaces_page_block_title_create_profile"><![CDATA[Создать пространство]]></string>
     <string name="_bx_spaces_page_block_title_edit_profile"><![CDATA[Редактировать пространство]]></string>
     <string name="_bx_spaces_page_block_title_edit_profile_cover"><![CDATA[Редактировать обложку]]></string>
+    <string name="_bx_spaces_page_block_title_edit_profile_settings"><![CDATA[Редактировать настройки]]></string>
     <string name="_bx_spaces_page_block_title_delete_profile"><![CDATA[Удалить пространство]]></string>
     <string name="_bx_spaces_page_block_title_profile_info_link"><![CDATA[<a href="{profile_link}">{display_name}</a> - Инфо]]></string>
     <string name="_bx_spaces_page_block_title_profile_info"><![CDATA[Инфо]]></string>
@@ -219,6 +225,8 @@
     <string name="_bx_spaces_menu_item_title_edit_pricing"><![CDATA[Редактировать цены]]></string>
     <string name="_bx_spaces_menu_item_title_system_edit_profile"><![CDATA[Редактировать пространство]]></string>
     <string name="_bx_spaces_menu_item_title_edit_profile"><![CDATA[Редактировать пространство]]></string>
+    <string name="_bx_spaces_menu_item_title_system_edit_settings"><![CDATA[Редактировать настройки]]></string>
+    <string name="_bx_spaces_menu_item_title_edit_settings"><![CDATA[Редактировать настройки]]></string>
     <string name="_bx_spaces_menu_item_title_system_delete_profile"><![CDATA[Удалить пространство]]></string>
     <string name="_bx_spaces_menu_item_title_delete_profile"><![CDATA[Удалить пространство]]></string>
     <string name="_bx_spaces_menu_item_title_system_delete_account"><![CDATA[Удалить аккаунт]]></string>

+ 3 - 0
modules/boonex/spaces/classes/BxSpacesConfig.php

@@ -19,6 +19,7 @@ class BxSpacesConfig extends BxBaseModGroupsConfig
             'view-space-profile' => 'checkAllowedView',
             'edit-space-profile' => 'checkAllowedEdit',
             'edit-space-cover' => 'checkAllowedChangeCover',
+            'edit-space-settings' => 'checkAllowedChangeSettings',
             'invite-to-space' => 'checkAllowedInvite',
             'delete-space-profile' => 'checkAllowedDelete',
             'approve-space-profile' => 'checkAllowedApprove',
@@ -64,6 +65,7 @@ class BxSpacesConfig extends BxBaseModGroupsConfig
             'FIELD_LOCATION_PREFIX' => 'location',
             'FIELDS_WITH_KEYWORDS' => 'auto', // can be 'auto', array of fields or comma separated string of field names, works only when OBJECT_METATAGS is specified
             'FIELD_LABELS' => 'labels',
+            'FIELD_STG_TABS' => 'stg_tabs',
 
             'FIELD_PRICE_ROLE_ID' => 'role_id',
             'FIELD_PRICE_NAME' => 'name',
@@ -121,6 +123,7 @@ class BxSpacesConfig extends BxBaseModGroupsConfig
             'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_space_add',
             'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_space_edit',
             'OBJECT_FORM_ENTRY_DISPLAY_EDIT_COVER' => 'bx_space_edit_cover',
+            'OBJECT_FORM_ENTRY_DISPLAY_EDIT_SETTINGS' => 'bx_space_edit_settings',
             'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_space_delete',
             'OBJECT_FORM_ENTRY_DISPLAY_INVITE' => 'bx_space_invite',
             'OBJECT_FORM_PRICE' => 'bx_spaces_price',

+ 9 - 1
modules/boonex/spaces/install/langs/en.xml

@@ -18,6 +18,7 @@
     <string name="_bx_spaces_form_profile_display_add"><![CDATA[Add Space]]></string>
     <string name="_bx_spaces_form_profile_display_edit"><![CDATA[Edit Space]]></string>
     <string name="_bx_spaces_form_profile_display_edit_cover"><![CDATA[Edit Cover]]></string>
+    <string name="_bx_spaces_form_profile_display_edit_settings"><![CDATA[Edit Settings]]></string>
     <string name="_bx_spaces_form_profile_display_delete"><![CDATA[Delete Space]]></string>
     <string name="_bx_spaces_form_profile_display_view"><![CDATA[View Space]]></string>
     <string name="_bx_spaces_form_profile_display_view_full"><![CDATA[Full View Space]]></string>
@@ -49,10 +50,12 @@
     <string name="_bx_spaces_form_profile_input_picture_err"><![CDATA[Space picture is mandatory.]]></string>
     <string name="_bx_spaces_form_profile_input_sys_cover"><![CDATA[Cover Picture]]></string>
     <string name="_bx_spaces_form_profile_input_cover"><![CDATA[Upload New Cover Picture]]></string>
+    <string name="_bx_spaces_form_profile_input_sys_stg_tabs"><![CDATA[Hide tabs]]></string>
+    <string name="_bx_spaces_form_profile_input_stg_tabs"><![CDATA[Hide tabs]]></string>
     <string name="_bx_spaces_form_profile_input_sys_delete_confirm"><![CDATA[Delete confirmation]]></string>
     <string name="_bx_spaces_form_profile_input_delete_confirm"><![CDATA[I am sure I want to delete this space]]></string>
     <string name="_bx_spaces_form_profile_input_delete_confirm_info"><![CDATA[This action can not be undone.]]></string>
-    <string name="_bx_spaces_form_profile_input_delete_confirm_error"><![CDATA[Please check this checkbox if you really want to delete space.]]></string>
+    <string name="_bx_spaces_form_profile_input_delete_confirm_error"><![CDATA[Please check this checkbox if you really want to delete space.]]></string>   
 
     <string name="_bx_spaces_form_price"><![CDATA[Price]]></string>
     <string name="_bx_spaces_form_price_display_add"><![CDATA[Add]]></string>
@@ -94,6 +97,8 @@
 	<string name="_bx_spaces_page_title_edit_profile"><![CDATA[Edit Space]]></string>
 	<string name="_bx_spaces_page_title_sys_edit_profile_cover"><![CDATA[Edit Space Cover]]></string>
 	<string name="_bx_spaces_page_title_edit_profile_cover"><![CDATA[Edit Cover]]></string>
+        <string name="_bx_spaces_page_title_sys_edit_profile_settings"><![CDATA[Edit Space Settings]]></string>
+	<string name="_bx_spaces_page_title_edit_profile_settings"><![CDATA[Edit Settings]]></string>
 	<string name="_bx_spaces_page_title_sys_delete_profile"><![CDATA[Delete Space]]></string>
 	<string name="_bx_spaces_page_title_delete_profile"><![CDATA[Delete Space]]></string>
         <string name="_bx_spaces_page_title_sys_join_profile"><![CDATA[Join Space]]></string>
@@ -151,6 +156,7 @@
   <string name="_bx_spaces_page_block_title_create_profile"><![CDATA[Create Space]]></string>
 	<string name="_bx_spaces_page_block_title_edit_profile"><![CDATA[Edit Space]]></string>
 	<string name="_bx_spaces_page_block_title_edit_profile_cover"><![CDATA[Edit Cover]]></string>
+        <string name="_bx_spaces_page_block_title_edit_profile_settings"><![CDATA[Edit Settings]]></string>
 	<string name="_bx_spaces_page_block_title_delete_profile"><![CDATA[Delete Space]]></string>
         <string name="_bx_spaces_page_block_title_join_profile"><![CDATA[Join Space]]></string>
 	<string name="_bx_spaces_page_block_title_profile_info_link"><![CDATA[About <a href="{profile_link}">{display_name}</a>]]></string>
@@ -223,6 +229,8 @@
         <string name="_bx_spaces_menu_item_title_edit_pricing"><![CDATA[Edit Pricing]]></string>
 	<string name="_bx_spaces_menu_item_title_system_edit_profile"><![CDATA[Edit Space]]></string>
 	<string name="_bx_spaces_menu_item_title_edit_profile"><![CDATA[Edit Space]]></string>
+        <string name="_bx_spaces_menu_item_title_system_edit_settings"><![CDATA[Edit Settings]]></string>
+        <string name="_bx_spaces_menu_item_title_edit_settings"><![CDATA[Edit Settings]]></string>
 	<string name="_bx_spaces_menu_item_title_system_delete_profile"><![CDATA[Delete Space]]></string>
 	<string name="_bx_spaces_menu_item_title_delete_profile"><![CDATA[Delete Space]]></string>
 	<string name="_bx_spaces_menu_item_title_system_delete_account"><![CDATA[Delete Account]]></string>

+ 1 - 1
modules/boonex/spaces/install/sql/disable.sql

@@ -8,7 +8,7 @@ DELETE FROM `sys_options_types` WHERE `id` = @iTypeId;
 
 -- PAGES
 DELETE FROM `sys_objects_page` WHERE `module` = 'bx_spaces';
-DELETE FROM `sys_pages_blocks` WHERE `module` = 'bx_spaces' OR `object` IN('bx_spaces_create_profile', 'bx_spaces_delete_profile', 'bx_spaces_join_profile', 'bx_spaces_edit_profile', 'bx_spaces_edit_profile_cover', 'bx_spaces_invite', 'bx_spaces_view_profile', 'bx_spaces_view_profile_closed', 'bx_spaces_profile_info', 'bx_spaces_profile_pricing', 'bx_spaces_profile_comments', 'bx_spaces_home', 'bx_spaces_fans', 'bx_spaces_joined', 'bx_spaces_favorites', 'bx_spaces_top', 'bx_spaces_search', 'bx_spaces_manage', 'bx_spaces_administration');
+DELETE FROM `sys_pages_blocks` WHERE `module` = 'bx_spaces' OR `object` IN('bx_spaces_create_profile', 'bx_spaces_delete_profile', 'bx_spaces_join_profile', 'bx_spaces_edit_profile', 'bx_spaces_edit_profile_cover', 'bx_spaces_edit_profile_settings', 'bx_spaces_invite', 'bx_spaces_view_profile', 'bx_spaces_view_profile_closed', 'bx_spaces_profile_info', 'bx_spaces_profile_pricing', 'bx_spaces_profile_comments', 'bx_spaces_home', 'bx_spaces_fans', 'bx_spaces_joined', 'bx_spaces_favorites', 'bx_spaces_top', 'bx_spaces_search', 'bx_spaces_manage', 'bx_spaces_administration');
 
 -- MENU
 DELETE FROM `sys_objects_menu` WHERE `module` = 'bx_spaces';

+ 9 - 4
modules/boonex/spaces/install/sql/enable.sql

@@ -71,8 +71,14 @@ INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module
 INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES 
 ('bx_spaces_edit_profile', 1, 'bx_spaces', '_bx_spaces_page_block_title_edit_profile', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_spaces\";s:6:\"method\";s:11:\"entity_edit\";}', 0, 0, 0);
 
--- PAGE: invite members
+-- PAGE: edit profile settings
+INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
+('bx_spaces_edit_profile_settings', 'edit-space-settings', '_bx_spaces_page_title_sys_edit_profile_settings', '_bx_spaces_page_title_edit_profile_settings', 'bx_spaces', 5, 2147483647, 1, 'page.php?i=edit-space-settings', '', '', '', 0, 1, 0, 'BxSpacesPageEntry', 'modules/boonex/spaces/classes/BxSpacesPageEntry.php');
+
+INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES 
+('bx_spaces_edit_profile_settings', 1, 'bx_spaces', '_bx_spaces_page_block_title_edit_profile_settings', 11, 2147483647, 'service', 'a:2:{s:6:"module";s:9:"bx_spaces";s:6:"method";s:20:"entity_edit_settings";}', 0, 0, 1, 1);
 
+-- PAGE: invite members
 INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
 ('bx_spaces_invite', 'invite-to-space', '_bx_spaces_page_title_sys_invite_to_space', '_bx_spaces_page_title_invite_to_space', 'bx_spaces', 5, 2147483647, 1, 'page.php?i=invite-to-space', '', '', '', 0, 1, 0, 'BxSpacesPageEntry', 'modules/boonex/spaces/classes/BxSpacesPageEntry.php');
 
@@ -80,7 +86,6 @@ INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbo
 ('bx_spaces_invite', 1, 'bx_spaces', '_bx_spaces_page_block_title_invite_to_space', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_spaces\";s:6:\"method\";s:13:\"entity_invite\";}', 0, 0, 0);
 
 -- PAGE: delete profile
-
 INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
 ('bx_spaces_delete_profile', 'delete-space-profile', '_bx_spaces_page_title_sys_delete_profile', '_bx_spaces_page_title_delete_profile', 'bx_spaces', 5, 2147483647, 1, 'page.php?i=delete-space-profile', '', '', '', 0, 1, 0, 'BxSpacesPageEntry', 'modules/boonex/spaces/classes/BxSpacesPageEntry.php');
 
@@ -111,7 +116,6 @@ INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `t
 ('bx_spaces_profile_pricing', 1, 'bx_spaces', '_bx_spaces_page_block_title_system_profile_pricing', '_bx_spaces_page_block_title_profile_pricing_link', 11, 2147483647, 'service', 'a:3:{s:6:"module";s:9:"bx_spaces";s:6:"method";s:14:"entity_pricing";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}}', 0, 0, 1, 1);
 
 -- PAGE: space fans
-
 INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
 ('bx_spaces_fans', 'space-fans', '_bx_spaces_page_title_sys_space_fans', '_bx_spaces_page_title_space_fans', 'bx_spaces', 5, 2147483647, 1, 'page.php?i=space-fans', '', '', '', 0, 1, 0, 'BxSpacesPageEntry', 'modules/boonex/spaces/classes/BxSpacesPageEntry.php');
 
@@ -260,7 +264,8 @@ INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `titl
 ('bx_spaces_view_actions_more', 'bx_spaces', 'audit', '_sys_menu_item_title_system_va_audit', '_sys_menu_item_title_va_audit', 'page.php?i=dashboard-audit&module=bx_spaces&content_id={content_id}', '', '', 'history', '', 192, '', 1, 0, 30),
 ('bx_spaces_view_actions_more', 'bx_spaces', 'edit-space-profile', '_bx_spaces_menu_item_title_system_edit_profile', '_bx_spaces_menu_item_title_edit_profile', 'page.php?i=edit-space-profile&id={content_id}', '', '', 'pencil-alt', '', 2147483647, '', 1, 0, 40),
 ('bx_spaces_view_actions_more', 'bx_spaces', 'edit-space-pricing', '_bx_spaces_menu_item_title_system_edit_pricing', '_bx_spaces_menu_item_title_edit_pricing', 'page.php?i=edit-space-pricing&profile_id={profile_id}', '', '', 'money-check-alt', '', 2147483647, 'a:3:{s:6:"module";s:9:"bx_spaces";s:6:"method";s:20:"is_pricing_avaliable";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}}', 1, 0, 41),
-('bx_spaces_view_actions_more', 'bx_spaces', 'invite-to-space', '_bx_spaces_menu_item_title_system_invite', '_bx_spaces_menu_item_title_invite', 'page.php?i=invite-to-space&id={content_id}', '', '', 'user-friends', '', 2147483647, '', 1, 0, 42),
+('bx_spaces_view_actions_more', 'bx_spaces', 'edit-space-settings', '_bx_spaces_menu_item_title_system_edit_settings', '_bx_spaces_menu_item_title_edit_settings', 'page.php?i=edit-space-settings&id={content_id}', '', '', 'toolbox', '', 2147483647, '', 1, 0, 42),
+('bx_spaces_view_actions_more', 'bx_spaces', 'invite-to-space', '_bx_spaces_menu_item_title_system_invite', '_bx_spaces_menu_item_title_invite', 'page.php?i=invite-to-space&id={content_id}', '', '', 'user-friends', '', 2147483647, '', 1, 0, 45),
 ('bx_spaces_view_actions_more', 'bx_spaces', 'delete-space-profile', '_bx_spaces_menu_item_title_system_delete_profile', '_bx_spaces_menu_item_title_delete_profile', 'page.php?i=delete-space-profile&id={content_id}', '', '', 'remove', '', 2147483647, '', 1, 0, 50),
 ('bx_spaces_view_actions_more', 'bx_spaces', 'approve-space-profile', '_sys_menu_item_title_system_va_approve', '_sys_menu_item_title_va_approve', 'javascript:void(0)', 'javascript:bx_approve(this, ''{module_uri}'', {content_id});', '', 'check', '', 2147483647, '', 1, 0, 60);
 

+ 8 - 1
modules/boonex/spaces/install/sql/install.sql

@@ -32,6 +32,7 @@ CREATE TABLE IF NOT EXISTS `bx_spaces_data` (
   `allow_post_to` varchar(16) NOT NULL DEFAULT '3',
   `status` enum('active','awaiting','hidden') NOT NULL DEFAULT 'active',
   `status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
+  `stg_tabs` text NOT NULL,
   PRIMARY KEY (`id`),
   FULLTEXT KEY `search_fields` (`space_name`, `space_desc`)
 );
@@ -324,6 +325,7 @@ INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`,
 ('bx_space', 'bx_space_delete', 'bx_spaces', 0, '_bx_spaces_form_profile_display_delete'),
 ('bx_space', 'bx_space_edit', 'bx_spaces', 0, '_bx_spaces_form_profile_display_edit'),
 ('bx_space', 'bx_space_edit_cover', 'bx_spaces', 0, '_bx_spaces_form_profile_display_edit_cover'),
+('bx_space', 'bx_space_edit_settings', 'bx_spaces', 0, '_bx_spaces_form_profile_display_edit_settings'),
 ('bx_space', 'bx_space_view', 'bx_spaces', 1, '_bx_spaces_form_profile_display_view'),
 ('bx_space', 'bx_space_view_full', 'bx_spaces', 1, '_bx_spaces_form_profile_display_view_full'),
 ('bx_space', 'bx_space_invite', 'bx_spaces', 0, '_bx_spaces_form_profile_display_invite');
@@ -343,7 +345,9 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
 ('bx_space', 'bx_spaces', 'cover', 'a:1:{i:0;s:20:"bx_spaces_cover_crop";}', 'a:1:{s:20:"bx_spaces_cover_crop";s:24:"_sys_uploader_crop_title";}', 0, 'files', '_bx_spaces_form_profile_input_sys_cover', '_bx_spaces_form_profile_input_cover', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
 ('bx_space', 'bx_spaces', 'picture', 'a:1:{i:0;s:22:"bx_spaces_picture_crop";}', 'a:1:{s:22:"bx_spaces_picture_crop";s:24:"_sys_uploader_crop_title";}', 0, 'files', '_bx_spaces_form_profile_input_sys_picture', '_bx_spaces_form_profile_input_picture', '', 0, 0, 0, '', '', '', '', '', '_bx_spaces_form_profile_input_picture_err', '', '', 1, 0),
 ('bx_space', 'bx_spaces', 'location', '', '', 0, 'location', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
-('bx_space', 'bx_spaces', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
+('bx_space', 'bx_spaces', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
+-- Settings
+('bx_space', 'bx_spaces', 'stg_tabs', 1, '', 0, 'checkbox_set', '_bx_spaces_form_profile_input_sys_stg_tabs', '_bx_spaces_form_profile_input_stg_tabs', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0);
 
 INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES 
 ('bx_space_add', 'initial_members', 2147483647, 1, 1),
@@ -378,6 +382,9 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_space_edit_cover', 'cover', 2147483647, 1, 1),
 ('bx_space_edit_cover', 'do_submit', 2147483647, 1, 2),
 
+('bx_space_edit_settings', 'stg_tabs', 2147483647, 1, 1),
+('bx_space_edit_settings', 'do_submit', 2147483647, 1, 2),
+
 ('bx_space_view', 'space_name', 2147483647, 1, 1),
 ('bx_space_view', 'space_cat', 2147483647, 1, 2),