mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-05 10:18:33 +08:00
[Legacy] Listview pagination configuration
This commit is contained in:
parent
ccbf58c7d9
commit
1db9b18906
8 changed files with 39 additions and 3 deletions
|
@ -232,6 +232,11 @@ $app_list_strings = array(
|
|||
'load-more' => 'Load More',
|
||||
'combined' => 'Combined'
|
||||
],
|
||||
'listview_pagination_type' => [
|
||||
'pagination' => 'Pagination',
|
||||
'load-more' => 'Load More',
|
||||
'combined' => 'Combined'
|
||||
],
|
||||
//Note: do not translate opportunity_relationship_type_default_key
|
||||
// it is the key for the default opportunity_relationship_type_dom value
|
||||
'opportunity_relationship_type_default_key' => 'Primary Decision Maker',
|
||||
|
|
|
@ -150,6 +150,7 @@ function make_sugar_config(&$sugar_config)
|
|||
'chgrp' => '',
|
||||
),
|
||||
'subpanel_pagination_type' => 'pagination',
|
||||
'listview_pagination_type' => 'pagination',
|
||||
'default_theme' => empty($default_theme) ? 'SuiteP' : $default_theme,
|
||||
'default_time_format' => empty($defaultTimeFormat) ? 'h:ia' : $defaultTimeFormat,
|
||||
'default_user_is_admin' => empty($default_user_is_admin) ? false : $default_user_is_admin,
|
||||
|
@ -493,6 +494,7 @@ function get_sugar_config_defaults(): array
|
|||
'phar',
|
||||
],
|
||||
'subpanel_pagination_type' => 'pagination',
|
||||
'listview_pagination_type' => 'pagination',
|
||||
'valid_image_ext' => [
|
||||
'gif',
|
||||
'png',
|
||||
|
|
|
@ -73,7 +73,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td scope="row">{$MOD.LBL_SET_PAGINATION_TYPE}:</td>
|
||||
<td><select name="subpanel_pagination_type">{$subpanel_pagination_type}</select></td>
|
||||
<td><select name="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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row">{$MOD.LOCK_HOMEPAGE}:</td>
|
||||
|
|
|
@ -157,7 +157,10 @@ 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('subpanel_pagination_type', get_select_options_with_id($app_list_strings['subpanel_pagination_type'], $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']));
|
||||
}
|
||||
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']));
|
||||
}
|
||||
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']));
|
||||
|
|
|
@ -771,6 +771,10 @@ class User extends Person implements EmailInterface
|
|||
$this->setPreference('subpanel_pagination_type', $_POST['subpanel_pagination_type'], 0, 'global');
|
||||
}
|
||||
|
||||
if (isset($_POST['listview_pagination_type'])) {
|
||||
$this->setPreference('listview_pagination_type', $_POST['subpanel_pagination_type'], 0, 'global');
|
||||
}
|
||||
|
||||
if (isset($_POST['user_swap_last_viewed'])) {
|
||||
$this->setPreference('swap_last_viewed', $_POST['user_swap_last_viewed'], 0, 'global');
|
||||
} else {
|
||||
|
|
|
@ -592,6 +592,14 @@ class UserViewHelper
|
|||
$this->ss->assign('subpanel_pagination_type', get_select_options_with_id($app_list_strings['subpanel_pagination_type'], $sugar_config['subpanel_pagination_type']));
|
||||
}
|
||||
|
||||
$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));
|
||||
} else {
|
||||
$this->ss->assign('listview_pagination_type', get_select_options_with_id($app_list_strings['listview_pagination_type'], $sugar_config['listview_pagination_type']));
|
||||
}
|
||||
|
||||
if ($this->bean->getPreference('count_collapsed_subpanels')) {
|
||||
$this->ss->assign("COUNT_COLLAPSED_SUBPANELS", 'checked');
|
||||
}
|
||||
|
|
|
@ -291,7 +291,8 @@ $mod_strings = array(
|
|||
'LBL_STATE' => 'State',
|
||||
'LBL_STATUS' => 'Status',
|
||||
'LBL_SUBPANEL_TABS' => 'Subpanel Tabs',
|
||||
'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_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.',
|
||||
|
|
|
@ -562,6 +562,15 @@
|
|||
tabindex='13'></div>
|
||||
<div class="bottom-dotted-border"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-container">
|
||||
<div class="left-col">
|
||||
<div class="row-label">{$MOD.LBL_SET_SUBPANEL_PAGINATION_TYPE}
|
||||
<select name="subpanel_pagination_type">{$subpanel_pagination_type}</select>
|
||||
</div>
|
||||
<div class="row-label">{$MOD.LBL_SET_LISTVIEW_PAGINATION_TYPE}
|
||||
<select name="listview_pagination_type">{$listview_pagination_type}</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue