Skip to content

Commit

Permalink
Ticket #4543 - Invitations: Allow to invite on a definite page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Nov 8, 2023
1 parent 010b908 commit 741e4aa
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 37 deletions.
39 changes: 20 additions & 19 deletions modules/boonex/invites/install/langs/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,26 @@
<string name="_bx_invites_grid_txt_account_manager"><![CDATA[Redirect to manage account.]]></string>
<string name="_bx_invites_grid_txt_view_request"><![CDATA[View request]]></string>

<!-- Pages and Blocks -->
<string name="_bx_invites_page_title_sys_invite"><![CDATA[Invite]]></string>
<string name="_bx_invites_page_title_invite"><![CDATA[Invite]]></string>
<string name="_bx_invites_page_block_title_system_invite_form"><![CDATA[Invite Form]]></string>
<string name="_bx_invites_page_block_title_invite_form"><![CDATA[Invite]]></string>

<string name="_bx_invites_page_title_sys_request"><![CDATA[Request Invitation]]></string>
<string name="_bx_invites_page_title_request"><![CDATA[Request Invitation]]></string>
<string name="_bx_invites_page_block_title_request_form"><![CDATA[Request Invitation]]></string>

<string name="_bx_invites_page_title_sys_requests"><![CDATA[Manage Invites]]></string>
<string name="_bx_invites_page_title_invites"><![CDATA[Manage Invites]]></string>
<string name="_bx_invites_page_block_title_invites"><![CDATA[Manage Invites]]></string>

<string name="_bx_invites_page_block_title_invite"><![CDATA[Invite]]></string>

<string name="_bx_invites_page_title_sys_invites"><![CDATA[Manage Requests]]></string>
<string name="_bx_invites_page_title_requests"><![CDATA[Manage Requests]]></string>
<string name="_bx_invites_page_block_title_requests"><![CDATA[Manage Requests]]></string>
<!-- Pages and Blocks -->
<string name="_bx_invites_page_title_sys_invite"><![CDATA[Invite]]></string>
<string name="_bx_invites_page_title_invite"><![CDATA[Invite]]></string>
<string name="_bx_invites_page_block_title_system_invite_form"><![CDATA[Invite Form]]></string>
<string name="_bx_invites_page_block_title_invite_form"><![CDATA[Invite]]></string>

<string name="_bx_invites_page_title_sys_request"><![CDATA[Request Invitation]]></string>
<string name="_bx_invites_page_title_request"><![CDATA[Request Invitation]]></string>
<string name="_bx_invites_page_block_title_request_form"><![CDATA[Request Invitation]]></string>

<string name="_bx_invites_page_title_sys_requests"><![CDATA[Manage Invites]]></string>
<string name="_bx_invites_page_title_invites"><![CDATA[Manage Invites]]></string>
<string name="_bx_invites_page_block_title_invites"><![CDATA[Manage Invites]]></string>

<string name="_bx_invites_page_block_title_system_invite_with_redirect"><![CDATA[Invite (with redirect)]]></string>
<string name="_bx_invites_page_block_title_invite"><![CDATA[Invite]]></string>

<string name="_bx_invites_page_title_sys_invites"><![CDATA[Manage Requests]]></string>
<string name="_bx_invites_page_title_requests"><![CDATA[Manage Requests]]></string>
<string name="_bx_invites_page_block_title_requests"><![CDATA[Manage Requests]]></string>

<!-- Menus -->
<string name="_bx_invites_menu_item_title_system_admt_requests"><![CDATA[Invitation requests]]></string>
Expand Down
5 changes: 5 additions & 0 deletions modules/boonex/invites/install/sql/enable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ SET @iPBOrderDashboard = 2; --(SELECT IFNULL(MAX(`order`), 0) FROM `sys_pages_bl
INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES
('sys_dashboard', @iPBCellDashboard, @sName, '_bx_invites_page_block_title_invite', 11, 2147483647, 'service', 'a:2:{s:6:"module";s:10:"bx_invites";s:6:"method";s:16:"get_block_invite";}', 0, 1, @iPBOrderDashboard);

-- PAGE: service blocks
SET @iBlockOrder = (SELECT `order` FROM `sys_pages_blocks` WHERE `object` = '' AND `cell_id` = 0 ORDER BY `order` DESC LIMIT 1);
INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
('', 0, @sName, '_bx_invites_page_block_title_system_invite_with_redirect', '_bx_invites_page_block_title_invite', 11, 2147483647, 'service', 'a:3:{s:6:"module";s:10:"bx_invites";s:6:"method";s:16:"get_block_invite";s:6:"params";a:1:{i:0;b:1;}}', 0, 1, 1, @iBlockOrder + 1);


-- MENU: dashboard manage tools
SET @iManageMenuOrder = (SELECT IFNULL(MAX(`order`), 0) FROM `sys_menu_items` WHERE `set_name`='sys_account_dashboard_manage_tools' LIMIT 1);
Expand Down
37 changes: 19 additions & 18 deletions modules/boonex/russian/data/langs/bx_invites/ru.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,25 @@
<string name="_bx_invites_grid_txt_view_request"><![CDATA[Просмотреть запрос]]></string>


<!-- Pages and Blocks -->
<string name="_bx_invites_page_title_sys_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_title_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_block_title_system_invite_form"><![CDATA[Пригласить - Форма]]></string>
<string name="_bx_invites_page_block_title_invite_form"><![CDATA[Пригласить]]></string>

<string name="_bx_invites_page_title_sys_request"><![CDATA[Запросить приглашение]]></string>
<string name="_bx_invites_page_title_request"><![CDATA[Запросить приглашение]]></string>
<string name="_bx_invites_page_block_title_request_form"><![CDATA[Запросить приглашение]]></string>

<string name="_bx_invites_page_title_sys_requests"><![CDATA[Управление запросами]]></string>
<string name="_bx_invites_page_title_requests"><![CDATA[Управление запросами]]></string>
<string name="_bx_invites_page_block_title_requests"><![CDATA[Управление запросами]]></string>

<string name="_bx_invites_page_title_invites"><![CDATA[Управление приглашениями]]></string>
<string name="_bx_invites_page_block_title_invites"><![CDATA[Управление приглашениями]]></string>
<string name="_bx_invites_page_block_title_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_title_sys_invites"><![CDATA[Управление приглашениями]]></string>
<!-- Pages and Blocks -->
<string name="_bx_invites_page_title_sys_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_title_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_block_title_system_invite_form"><![CDATA[Пригласить - Форма]]></string>
<string name="_bx_invites_page_block_title_invite_form"><![CDATA[Пригласить]]></string>

<string name="_bx_invites_page_title_sys_request"><![CDATA[Запросить приглашение]]></string>
<string name="_bx_invites_page_title_request"><![CDATA[Запросить приглашение]]></string>
<string name="_bx_invites_page_block_title_request_form"><![CDATA[Запросить приглашение]]></string>

<string name="_bx_invites_page_title_sys_requests"><![CDATA[Управление запросами]]></string>
<string name="_bx_invites_page_title_requests"><![CDATA[Управление запросами]]></string>
<string name="_bx_invites_page_block_title_requests"><![CDATA[Управление запросами]]></string>

<string name="_bx_invites_page_title_invites"><![CDATA[Управление приглашениями]]></string>
<string name="_bx_invites_page_block_title_invites"><![CDATA[Управление приглашениями]]></string>
<string name="_bx_invites_page_block_title_system_invite_with_redirect"><![CDATA[Пригласить (с перенаправлением)]]></string>
<string name="_bx_invites_page_block_title_invite"><![CDATA[Пригласить]]></string>
<string name="_bx_invites_page_title_sys_invites"><![CDATA[Управление приглашениями]]></string>


<!-- Menus -->
Expand Down

0 comments on commit 741e4aa

Please sign in to comment.