mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-05 10:18:33 +08:00
[Legacy] Add record modal load more configuration
This commit is contained in:
parent
06c43ba707
commit
58688d5521
9 changed files with 46 additions and 13 deletions
|
@ -229,13 +229,15 @@ $app_list_strings = array(
|
|||
),
|
||||
'subpanel_pagination_type' => [
|
||||
'pagination' => 'Pagination',
|
||||
'load-more' => 'Load More',
|
||||
'combined' => 'Combined'
|
||||
'load-more' => 'Load More'
|
||||
],
|
||||
'listview_pagination_type' => [
|
||||
'pagination' => 'Pagination',
|
||||
'load-more' => 'Load More',
|
||||
'combined' => 'Combined'
|
||||
'load-more' => 'Load More'
|
||||
],
|
||||
'record_modal_pagination_type' => [
|
||||
'pagination' => 'Pagination',
|
||||
'load-more' => 'Load More'
|
||||
],
|
||||
//Note: do not translate opportunity_relationship_type_default_key
|
||||
// it is the key for the default opportunity_relationship_type_dom value
|
||||
|
|
|
@ -441,6 +441,7 @@ function get_sugar_config_defaults(): array
|
|||
'languages' => ['en_us' => 'English (US)'],
|
||||
'large_scale_test' => false,
|
||||
'list_max_entries_per_page' => 20,
|
||||
'record_modal_pagination_type' => 'pagination',
|
||||
'list_max_entries_per_subpanel' => 10,
|
||||
'list_max_entries_per_modal' => 10,
|
||||
'lock_default_user_name' => false,
|
||||
|
|
|
@ -164,8 +164,10 @@ $mod_strings = array(
|
|||
'LBL_LDAP_AUTO_CREATE_USERS_DESC' => 'If an authenticated user does not exist, one will be created in SuiteCRM.',
|
||||
'LBL_LDAP_ENC_KEY' => 'Encryption Key:',
|
||||
'DEVELOPER_MODE' => 'Developer Mode',
|
||||
'LBL_SET_PAGINATION_TYPE' => 'Set Pagination Type',
|
||||
'LBL_SET_SUBPANEL_PAGINATION_TYPE' => 'Set Subpanel Pagination Type',
|
||||
'LBL_SET_LISTVIEW_PAGINATION_TYPE' => 'Set Listview Pagination Type',
|
||||
'LBL_LIST_ENTRIES_PER_MODAL' => 'Records Per Modal Page',
|
||||
'LBL_SET_RECORD_MODAL_PAGINATION_TYPE' => 'Set Record Modal Pagination Type',
|
||||
|
||||
'SHOW_DOWNLOADS_TAB' => 'Display Downloads Tab',
|
||||
'SHOW_DOWNLOADS_TAB_HELP' => 'When selected, the Download tab will appear in the User settings and provide users with access to SuiteCRM plug-ins and other available files',
|
||||
|
|
|
@ -72,12 +72,16 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row">{$MOD.LBL_SET_PAGINATION_TYPE}:</td>
|
||||
<td><select name="pagination_type">{$subpanel_pagination_type}</select></td>
|
||||
<td scope="row">{$MOD.LBL_SET_SUBPANEL_PAGINATION_TYPE}:</td>
|
||||
<td><select name="subpanel_pagination_type">{$subpanel_pagination_type}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row">{$MOD.LBL_SET_PAGINATION_TYPE}:</td>
|
||||
<td><select name="pagination_type">{$listview_pagination_type}</select></td>
|
||||
<td scope="row">{$MOD.LBL_SET_LISTVIEW_PAGINATION_TYPE}:</td>
|
||||
<td><select name="listview_pagination_type">{$listview_pagination_type}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row">{$MOD.LBL_SET_RECORD_MODAL_PAGINATION_TYPE}:</td>
|
||||
<td><select name="record_modal_pagination_type">{$record_modal_pagination_type}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="17%" scope="row"><span>{$MOD.LBL_LIST_ENTRIES_PER_MODAL}</td>
|
||||
|
|
|
@ -157,10 +157,19 @@ class ConfiguratorViewEdit extends ViewEdit
|
|||
$this->ss->assign('lead_conv_activities', get_select_options_with_id(Lead::getActivitiesOptions(), ''));
|
||||
}
|
||||
if (!empty($configurator->config['subpanel_pagination_type'])) {
|
||||
$this->ss->assign('pagination_type', get_select_options_with_id($app_list_strings['subpanel_pagination_type'], $configurator->config['subpanel_pagination_type']));
|
||||
$this->ss->assign('subpanel_pagination_type', get_select_options_with_id($app_list_strings['subpanel_pagination_type'], $configurator->config['subpanel_pagination_type']));
|
||||
} else {
|
||||
$this->ss->assign('subpanel_pagination_type', get_select_options_with_id($app_list_strings['subpanel_pagination_type'],'pagination'));
|
||||
}
|
||||
if (!empty($configurator->config['listview_pagination_type'])) {
|
||||
$this->ss->assign('pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $configurator->config['listview_pagination_type']));
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $configurator->config['listview_pagination_type']));
|
||||
} else {
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], 'pagination'));
|
||||
}
|
||||
if (!empty($configurator->config['record_modal_pagination_type'])) {
|
||||
$this->ss->assign('record_modal_pagination_type', get_select_options_with_id($app_list_strings['record_modal_pagination_type'], $configurator->config['record_modal_pagination_type']));
|
||||
} else {
|
||||
$this->ss->assign('record_modal_pagination_type', get_select_options_with_id($app_list_strings['record_modal_pagination_type'], 'pagination'));
|
||||
}
|
||||
if (!empty($configurator->config['logger']['file']['suffix'])) {
|
||||
$this->ss->assign('filename_suffix', get_select_options_with_id(SugarLogger::$filename_suffix, $configurator->config['logger']['file']['suffix']));
|
||||
|
|
|
@ -772,7 +772,11 @@ class User extends Person implements EmailInterface
|
|||
}
|
||||
|
||||
if (isset($_POST['listview_pagination_type'])) {
|
||||
$this->setPreference('listview_pagination_type', $_POST['subpanel_pagination_type'], 0, 'global');
|
||||
$this->setPreference('listview_pagination_type', $_POST['listview_pagination_type'], 0, 'global');
|
||||
}
|
||||
|
||||
if (isset($_POST['record_modal_pagination_type'])) {
|
||||
$this->setPreference('record_modal_pagination_type', $_POST['record_modal_pagination_type'], 0, 'global');
|
||||
}
|
||||
|
||||
if (isset($_POST['user_swap_last_viewed'])) {
|
||||
|
|
|
@ -595,11 +595,19 @@ class UserViewHelper
|
|||
$listview_pagination_type = $this->bean->getPreference('listview_pagination_type');
|
||||
|
||||
if (!empty($listview_pagination_type)) {
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $subpanel_paginationType));
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $listview_pagination_type));
|
||||
} else {
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $sugar_config['listview_pagination_type']));
|
||||
}
|
||||
|
||||
$record_modal_pagination_type = $this->bean->getPreference('record_modal_pagination_type');
|
||||
|
||||
if (!empty($record_modal_pagination_type)){
|
||||
$this->ss->assign('record_modal_pagination_type', get_select_full_options_with_id($app_list_strings['record_modal_pagination_type'], $record_modal_pagination_type));
|
||||
} else {
|
||||
$this->ss->assign('record_modal_pagination_type', get_select_options_with_id($app_list_strings['record_modal_pagination_type'], $sugar_config['record_modal_pagination_type']));
|
||||
}
|
||||
|
||||
if ($this->bean->getPreference('count_collapsed_subpanels')) {
|
||||
$this->ss->assign("COUNT_COLLAPSED_SUBPANELS", 'checked');
|
||||
}
|
||||
|
|
|
@ -293,6 +293,7 @@ $mod_strings = array(
|
|||
'LBL_SUBPANEL_TABS' => 'Subpanel Tabs',
|
||||
'LBL_SET_SUBPANEL_PAGINATION_TYPE' => 'Set Subpanel Pagination Type',
|
||||
'LBL_SET_LISTVIEW_PAGINATION_TYPE' => 'Set Listview Pagination Type',
|
||||
'LBL_SET_RECORD_MODAL_PAGINATION_TYPE' => 'Set Record Modal Pagination Type',
|
||||
'LBL_SUBPANEL_TABS_DESCRIPTION' => 'In Detail Views, group Subpanels into tabs and display one tab at a time.',
|
||||
'LBL_SORT_MODULES' => 'Sort modules alphabetically',
|
||||
'LBL_SORT_MODULES_DESCRIPTION' => 'Order modules by name in the navigation drop down.',
|
||||
|
|
|
@ -570,6 +570,8 @@
|
|||
</div>
|
||||
<div class="row-label">{$MOD.LBL_SET_LISTVIEW_PAGINATION_TYPE}
|
||||
<select name="listview_pagination_type">{$listview_pagination_type}</select>
|
||||
<div class="row-label">{$MOD.LBL_SET_RECORD_MODAL_PAGINATION_TYPE}
|
||||
<select name="record_modal_pagination_type">{$record_modal_pagination_type}</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue